On Fri, 2 Sep 2005, Christopher H. Laco wrote:
Philip M. Gollucci wrote:
Christopher H. Laco wrote:
Can't locate object method "dir_config" via package "Apache2::RequestRec"
Thats a good question. Your code looks fundamentally correct. Here's a
live example maybe it will help.
Here's what I've learned.
handler {
my $r = shift;
};
At this point, $r is a simple old RequestRec. IT appears I
have to use other mofules to enhance what $r can do.
My problem was that I wasn't including RequestIO for print
or RequestUtil for dir_config.
For the archives, you can use ModPerl::MethodLookup to help
with errors like this:
bash$ perl -MModPerl::MethodLookup -e print_method dir_config
There is more than one class with method 'dir_config'
try one of:
use Apache2::RequestUtil ();
use Apache2::ServerUtil ();
--
best regards,
randy kobes