POE-Declarative
view release on metacpan or search on metacpan
lib/POE/Declarative.pm view on Meta::CPAN
The order multiple handlers will run in is not (as of this writing) completely explicit. However, the primary package's handlers will be run last after all mixins have run. Also, the order the handlers is defined within a package will be preserved. T...
Because of these, the output from the previous example might also be:
YXZ
If you use L</call> to synchronously activate a state and use the return value. It will be set to the return value of the last handler run in the main package.
=cut
sub on($$) {
my $state = shift;
my $code = shift;
croak qq{"on" expects a code reference as the second argument, }
.qq{found $code instead}
unless ref $code and reftype $code eq 'CODE';
my $session = POE::Kernel->get_active_session;
my $package;
( run in 1.651 second using v1.01-cache-2.11-cpan-524268b4103 )