Re: Better ways than call()

2015-11-09 Thread John
Thanks. That helps a bunch. John On Nov 9, 2015 7:47 AM, "Rocco Caputo" wrote: > Hi, John. > > There's no requirement to store everything in $_[HEAP]. Data that must be > accessible outside a session can be stored somewhere else. > > For example, if you're using object_states to handle events,

Re: Better ways than call()

2015-11-09 Thread Rocco Caputo
Hi, John. There's no requirement to store everything in $_[HEAP]. Data that must be accessible outside a session can be stored somewhere else. For example, if you're using object_states to handle events, each call gets a reference to the object: $_[OBJECT]. So you can store data particular to

Better ways than call()

2015-11-09 Thread john
The POE::Kernel documentation indicates this for call(): call() returns the value returned by the EVENT_NAME handler. It can do this because the handler is invoked before call() returns. call() can therefore be used as an accessor, although there are better ways to accomplish simple accessor b