Come for the quick hacks, stay for the epiphanies. | |
PerlMonks |
Re: POE sharing data between sessionsby rcaputo (Chaplain) |
on Jun 10, 2005 at 21:10 UTC ( [id://465689]=note: print w/replies, xml ) | Need Help?? |
It's okay to use global variables can act as shared memory between POE sessions. If you'd rather not use a global hash, you can always create a singleton object to act as an in-memory database for shared information. POE's web site has a chat server example that uses a global hash and an accessor to keep track of the users currently online. POE's not nearly as fascist as people seem to think it is.
In Section
Seekers of Perl Wisdom
|
|