
Games::Sudoku::Component::Controller::History

use Games::Sudoku::Component::Controller::History;
my $history = Games::Sudoku::Component::Controller::History->new;
my $item = Games::Sudoku::Component::Table::Item->new(
row => 1,
col => 2,
allowed => [1,3],
);
$history->push($item);
my $item2 = $history->pop;

This module provides a history stack for Games::Sudoku::Component::Controller.

Creates an object.
Stores an object (supposedly of Games::Sudoku::Component::Table::Item) in the stack.
Retrieves an object (supposedly of Games::Sudoku::Component::Table::Item) from the stack.
Returns an array of the number of objects stored in the stack.
Returns how many items are stored in the stack.
Clears the stack.


Kenichi Ishigaki, <ishigaki@cpan.org>

Copyright (C) 2006 by Kenichi Ishigaki
This library is free software; you can redistribute it and/or modify it under the same terms as Perl itself.