On Mon, 12 Mar 2001, Gene Dascher wrote:
> How can I access the Apache Request object from a Perl package that I am
> calling from a Perl Authorization handler?
$r is the first argument passed to your handler.
my $r = shift;
> I tried using the following code in TestPackage.pm:
>
> my $r = Apache->request();
> my $s = $r->server;
>
> but the error I get is: Can't call method "server" on an undefined value.
That should work as well, although it's slower. Something might be wrong
with your build if this is failing.
- Perrin