POE::Callback - object wrapper for callbacks with lexical closures
# TODO - Make this a complete working example. my $callback = POE::Callback->new( name => "Pkg::sub", code => \&coderef, ); $callback->(@arguments);
POE::Callback wraps coderefs in magic that makes certain lexical variables persistent between calls.
It's used internally by the classes that comprise POE::Stage.
Creates a new callback from a raw CODEREF. Returns the callback, which is just the CODEREF blessed into POE::Callback.
To install POE::Stage, copy and paste the appropriate command in to your terminal.
cpanm
cpanm POE::Stage
CPAN shell
perl -MCPAN -e shell install POE::Stage
For more information on module installation, please visit the detailed CPAN module installation guide.