CPS::Governor::Simple - iterate immediately as fast as possible
use CPS qw( gkforeach );
my $gov = CPS::Governor::Simple->new;
gkforeach( $gov, [ 1 .. 10 ],
my ( $item, $knext ) = @_;
This CPS::Governor allows the functions using it to run as fast as possible. It invokes its continuations immediately using a tailcall, so as not to let the stack grow arbitrarily.
Its constructor takes no special arguments, and it provides no other methods beyond those of CPS::Governor.
Paul Evans <firstname.lastname@example.org>
To install CPS, copy and paste the appropriate command in to your terminal.
perl -MCPAN -e shell
For more information on module installation, please visit the detailed CPAN module installation guide.