dynis has asked for the wisdom of the Perl Monks concerning the following question:
POE::Session->create( inline_states => { _start => sub { $_[KERNEL]->alarm( tick => time() + 1, 0 ); }, tick => sub { print "tick $_[ARG0]\n"; $_[KERNEL]->alarm( tock => time() + 1, $_[ARG0] + 1 ); }, tock => sub { print "tock $_[ARG0]\n"; $_[KERNEL]->alarm( tick => time() + 1, $_[ARG0] + 1 ); }, } );
$_[KERNEL]->alarm( $self->method => time() + 5 );
|
|---|
| Replies are listed 'Best First'. | |
|---|---|
|
Re: Object Methods with POE::Kernel's alarm?
by rcaputo (Chaplain) on Jan 19, 2009 at 23:50 UTC | |
|
Re: Object Methods with POE::Kernel's alarm?
by kyle (Abbot) on Jan 19, 2009 at 22:38 UTC | |
|
Re: Object Methods with POE::Kernel's alarm?
by revdiablo (Prior) on Jan 19, 2009 at 22:46 UTC | |
|
Re: Object Methods with POE::Kernel's alarm?
by Anonymous Monk on Jan 20, 2009 at 04:06 UTC | |
by dynis (Initiate) on Jan 20, 2009 at 04:08 UTC |