perl-modperl mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From Mark Hedges <hed...@scriptdolphin.org>
Subject Re: Acess current request using static method
Date Wed, 07 Jan 2009 18:26:57 GMT


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?

Mark

Mime
View raw message