POE::DeclarativePOE::Declarative is a Perl module that can write POE applications without the mess. | |
Download |
POE::Declarative Ranking & Summary
Advertisement
- License:
- Perl Artistic License
- Price:
- FREE
- Publisher Name:
- Andrew Sterling Hanenkamp
- Publisher web site:
- http://search.cpan.org/~hanenkamp/File-System-1.16/lib/File/System.pm
POE::Declarative Tags
POE::Declarative Description
POE::Declarative is a Perl module that can write POE applications without the mess. POE::Declarative is a Perl module that can write POE applications without the mess.SYNOPSIS use POE; use POE::Declarative; on _start => run { yield 'count_to_10'; }; on count_to_10 => run { for ( 1 .. 10 ) { yield say => $_; } }; on say => run { print get(ARG0); }; POE::Declarative->setup; POE::Kernel->run;Taking the lessons learned from writing dispatchers and templates in Jifty and Template::Declare, I've applied the same declarative language to POE. The goal is to make writing a POE application less painful so that I can concentrate on the more important aspects of my programming.This module is still VERY EXPERIMENTAL. I just wrote it this evening and it needs lots of work.DECLARATIONSon STATE => CODEon => CODEUse the on rule to specify what code to run on a given state (or states). The usual way to say this is: on _start => run { ... };But you could also say: on _start => sub { ... };or: on _start => run _start_handler;or: on _start => &_start_handler; Requirements: · Perl
POE::Declarative Related Software