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.
To install Games::Sudoku::Component, copy and paste the appropriate command in to your terminal.
cpanm
cpanm Games::Sudoku::Component
CPAN shell
perl -MCPAN -e shell install Games::Sudoku::Component
For more information on module installation, please visit the detailed CPAN module installation guide.