in reply to POE and $_[KERNEL]

The $_[KERNEL] is just an indexed access to @_ using the predefined constant KERNEL - using the constants like this allows for one thing POE to not have to document explicitly the order in which all of the arguments are passed to the method.

Update: frodo72 pointed me to http://poe.perl.org/?POE_FAQ/calling_convention that explains this rather nicely.

/J\

Replies are listed 'Best First'.
Re^2: POE and $_[KERNEL]
by talexb (Chancellor) on Sep 06, 2005 at 18:04 UTC

    D'Oh! Of course, $_[some index here] is just Perl accessing the @_ array. And I already know that KERNEL is a constant -- defined as a simple function in POE::Session.

    Sorry, that was a somewhat lame question -- for some reason I thought it was doing some wonderfully dark magic that wasn't even in the Camel. Phew.

    Alex / talexb / Toronto

    "Groklaw is the open-source mentality applied to legal research" ~ Linus Torvalds