You are viewing a plain text version of this content. The canonical link for it is here.
Posted to modperl@perl.apache.org by "Ruslan U. Zakirov" <cu...@wr.miee.ru> on 2002/11/22 09:55:41 UTC

How sub handler was called.

     Hello, all!
May I understand in my handler sub how it was called?
Was it called by Apache process in stacked handlers chain or
it was called by some other module with call "MyMod::handler($r)"?
Could i do it without adding some special parametrs?
   Beforehead thanks, Ruslan.


Re: How sub handler was called.

Posted by Stas Bekman <st...@stason.org>.
Stas Bekman wrote:
> Ruslan U. Zakirov wrote:
> 
>>      Hello, all!
>> May I understand in my handler sub how it was called?
>> Was it called by Apache process in stacked handlers chain or
>> it was called by some other module with call "MyMod::handler($r)"?
>> Could i do it without adding some special parametrs?
> 
> 
> perldoc caller

perldoc -f caller

Thanks, Issac



__________________________________________________________________
Stas Bekman            JAm_pH ------> Just Another mod_perl Hacker
http://stason.org/     mod_perl Guide ---> http://perl.apache.org
mailto:stas@stason.org http://use.perl.org http://apacheweek.com
http://modperlbook.org http://apache.org   http://ticketmaster.com


Re: How sub handler was called.

Posted by Stas Bekman <st...@stason.org>.
Ruslan U. Zakirov wrote:
>      Hello, all!
> May I understand in my handler sub how it was called?
> Was it called by Apache process in stacked handlers chain or
> it was called by some other module with call "MyMod::handler($r)"?
> Could i do it without adding some special parametrs?

perldoc caller


__________________________________________________________________
Stas Bekman            JAm_pH ------> Just Another mod_perl Hacker
http://stason.org/     mod_perl Guide ---> http://perl.apache.org
mailto:stas@stason.org http://use.perl.org http://apacheweek.com
http://modperlbook.org http://apache.org   http://ticketmaster.com