Coro::Cont - schmorp's faked continuations
use Coro::Cont; # multiply all hash keys by 2 my $cont = cont { result $_*2; result $_; }; my %hash2 = map &$cont, &hash1;
Create a new "continuation" (well, almost, you cannot return from it).
Return the given list/scalar as result of the continuation.
Marc Lehmann <pcg@goof.com> http://www.goof.com/pcg/marc/
To install Coro, copy and paste the appropriate command in to your terminal.
cpanm
cpanm Coro
CPAN shell
perl -MCPAN -e shell install Coro
For more information on module installation, please visit the detailed CPAN module installation guide.