The Perl Toolchain Summit needs more sponsors. If your company depends on Perl, please support this very important event.

NAME

Coro::Cont - schmorp's faked continuations

SYNOPSIS

 use Coro::Cont;

 # multiply all hash keys by 2
 my $cont = cont {
    result $_*2;
    result $_;
 };
 my %hash2 = map &$cont, &hash1;

DESCRIPTION

cont { ... }

Create a new "continuation" (well, almost, you cannot return from it).

result [list]

Return the given list/scalar as result of the continuation.

AUTHOR

 Marc Lehmann <pcg@goof.com>
 http://www.goof.com/pcg/marc/