You're probably using Apache2::RequestUtil in startup.pl, 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.
Adam -----Original Message----- From: Jonathan Vanasco [mailto:[EMAIL PROTECTED] Sent: Thursday, May 03, 2007 12:10 PM To: Torsten Foertsch Cc: modperl@perl.apache.org 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/RequestUtil.pm > 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.