On Sat, 2004-03-06 at 06:14, Jay Strauss wrote:
> Hi,
> 
> If I'm using POE::Component::Client::TCP, can I learn the name of the event
> called?  For example I'd like to do:
> 
>         POE::Component::Client::TCP->new (
>                 ...
>                 ConnectError   => \&generalErrorHandler,
>                 Disconnected   => \&generalErrorHandler,
>                 ServerError    => \&generalErrorHandler,
>         );
> 
> sub generalErrorHandler {
>     my $event = ?????
> 
>     print "I got called from $event\n";
> }

my $event = $_[STATE];

Shaun

Reply via email to