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 obje
sub list : method {
my $class = shift;
my $r = shift;
my $req = APR::Request::Apache2->handle($r);
OR
sub list {
my $r = shift;
my $req = APR::Request::Apache2->handle($r);
--
1024D/DB9B8C1C B90B FB
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 Pe
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!
So you could access the request object from a function without passing
the request in as a parameter.
Background is, I want to acce