perl-modperl mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From "Len Kranendonk" <...@primaat.com>
Subject Re: What handler am I ?
Date Wed, 01 Feb 2006 16:12:12 GMT
Exactly what I was look for ! Thanks !

----- Original Message ----- 
From: "Geoffrey Young" <geoff@modperlcookbook.org>
To: "Len Kranendonk" <len@primaat.com>
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
> 


Mime
View raw message