perl-modperl mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From Michael Ludwig <...@as-guides.com>
Subject Re: Acess current request using static method
Date Thu, 08 Jan 2009 08:33:34 GMT
Mark Hedges schrieb:
> On Wed, 7 Jan 2009, Michael Ludwig wrote:
>> In 2.0, is there a way to access the current request object using one
>> of the classes in the following fashion?
>>
>>   my $r = Apache2::RequestRec->current(); # INVALID!
>
>>>From `man Apache2::RequestUtil`:
>
>  # get the global request object (requires PerlOptions +GlobalRequest)
>  $r = Apache2::RequestUtil->request;
>
> Is that what you want?

Yes, that's exactly what I was looking for! Thanks Mark, Philip, Steven
(your reply was off-list).

Michael

Mime
View raw message