I've got a script, lets say foo.pl. foo.pl calls a sub from a module, utility.pm, utility::poe_initialize();. initially, this doesnt work, since it can't find main::_start anywhere (i.e., in foo.pl):

package main does not have a '_start' method at utility.pm line 214
POE::Kernel's run() method was never called.

if we change the POE::Session -> new() call to include "utility::_start" and "utility::_stop" subs, we get a different error:

discarding session - no '_start' state at utility.pm line 214
POE::Kernel's run() method was never called.

this seems to me to be a bug. shouldnt it be looking for a _start in utility:: since poe_initialize() is actually there? it seems that after it is passed a proper _start sub, that it should understand whether it is prefaced with packagename:: or whatever, rather than assuming it starts with ^_.

am i making sense here?

alex

Reply via email to