Re: Use of POE within a module

2009-04-29 Thread David Davis
I'd look here: http://search.cpan.org/dist/POE/ and Start with POE::Kernel and POE::Session The POD docs are the most recent. Cheers David Davis ☄ Software Engineer http://xant.us/ http://xantus.tel/ On Tue, Apr 28, 2009 at 19:38, howard chen howac...@gmail.com wrote: Hello, On Wed, Apr

Use of POE within a module

2009-04-28 Thread howard chen
Hello, Most example put callback function as global, e.g. http://search.cpan.org/dist/POE-Component-Client-NNTP/lib/POE/Component/Client/NNTP.pm POE::Session-create( package_states = [ 'main' = { nntp_disconnected = '_shutdown', nntp_socketerr

Re: Use of POE within a module

2009-04-28 Thread David Davis
Replace 'main' with MyModule and remove MyModule from your function names. You should also read the docs. David Davis ☄ Software Engineer http://xant.us/ http://xantus.tel/ On Tue, Apr 28, 2009 at 10:00, howard chen howac...@gmail.com wrote: Hello, Most example put callback function as

Re: Use of POE within a module

2009-04-28 Thread howard chen
Hello, On Wed, Apr 29, 2009 at 2:08 AM, David Davis david.da...@gmail.com wrote: Replace 'main' with MyModule and remove MyModule from your function names. You should also read the docs. Yes, but the POE doc are quite scatterred (http://poe.perl.org/?POE_Documentation), and many are old