perl-modperl mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From "Adam Prime x443" <>
Subject RE: location
Date Thu, 03 May 2007 17:05:51 GMT
You're probably using Apache2::RequestUtil in, or some other
file you're also use'ing prior if you aren't getting an error already
when you try to call $r->location.


-----Original Message-----
From: Jonathan Vanasco [] 
Sent: Thursday, May 03, 2007 12:10 PM
To: Torsten Foertsch
Subject: Re: location

On May 3, 2007, at 10:54 AM, Torsten Foertsch wrote:
> You see the location function is created directly in the  
> Apache2::RequestRec
> namespace (the PACKAGE = ...).
> The perl equivalent would be a file named Apache2/  
> that starts
> with a "package Apache2::RequestRec" line. When you now load
> Apache2::RequestUtil all functions in the file will be added to the
> Apache2::RequestRec namespace.
> This is a common pattern in mod_perl.

So then this is a documentation bug of sorts ?

It seems like a gray area -- I can change my code to use RequestUtil  
if needed, I just don't want anything that isn't written to spec.

View raw message