POE-Declarative

 view release on metacpan or  search on metacpan

lib/POE/Declarative.pm  view on Meta::CPAN

This is mostly a replacement keyword for C<sub> because:

  on _start => run { ... };

reads better than:

  on _start => sub { ... };

=cut

sub run(&) { $_[0] }

=head1 HELPERS

In addition to providing the declarative syntax the system also provides some helpers to shorten up the guts of your POE applications as well.

=head2 get INDEX

Rather than doing this (which you can still do inside your handlers):

  my ($kernel, $heap, $session, $flam, $floob, $flib)



( run in 0.292 second using v1.01-cache-2.11-cpan-49f99fa48dc )