Exactly what I was look for ! Thanks !
----- Original Message -----
From: "Geoffrey Young" <[EMAIL PROTECTED]>
To: "Len Kranendonk" <[EMAIL PROTECTED]>
Cc: <modperl@perl.apache.org>
Sent: Wednesday, February 01, 2006 3:32 PM
Subject: Re: What handler am I ?
Len Kranendonk wrote:
Hello all,
Suppose I have this:
PerlModule My::Module
PerlChildInitHandler My::Module
PerlOutputFilterHandler My::Module
In the sub handler {} , is there a way to determinate what type of
handler I am supposed to be ?
yes, current_callback()
I'm running mod_perl2 for that matters.
yes, it does :)
for mp2 it's
use ModPerl::Util;
my $callback = ModPerl::Util::current_callback();
for mp1 it's simply
my $callback = $r->current_callback();
HTH
--Geoff