I'm getting the following error,

$ perl -MApache::Request -e 'Apache::Request->new'
Can't locate object method "new" via package "Apache::Request" (perhaps you forgot to 
load "Apache::Request"?) at -e line 1.
$

...both from the command line and under a PerlHandler Apache::Registry'd
script.

Of course, it is installed:

$ perl -MApache::Request -le 'print grep /Request/, values %INC; print 
$Apache::Request::VERSION'
/usr/local/lib/perl/5.6.1/Apache/Request.pm
0.33
$

In all other respects I'm able to discern so far mod_perl, Perl and
Apache are working here (I have a number of sites using Template Toolkit
with a custom PerlHandler and a few scripts under Apache::Registry). I'm
getting this error from both a fresh CPAN install and Debian's
libapache-request-perl package (not installed at the same time!).

Any suggestions where to start looking?

Thanks,
Paul

PS Rather than cluttering your inbox, perl -V is at
   http://paulm.com/tmp/perl_v.txt

-- 
Paul Makepeace ....................................... http://paulm.com/

"If laughter can heal, then a priest will behave very oddly."
   -- http://paulm.com/toys/surrealism/

Reply via email to