Quote:
Originally Posted by comingme
#!/usr/bin/perl5
use Apache ();
use Apache::Request ();
my $apr = Apache::Request->new($r);
The installation seems fine. Apache runs ok. But the above apache::request seems not working. It gives the following ERROR:
Can't locate object method "new" via package "Apache::Request" at ApacheRelated.cgi line 6.
|
Might be better in the "programming" forum, but based on the (very little) code you posted, you're not using the module correctly. Bad syntax, as well as not having things defined.
A quick Google search turns up examples:
http://modperlbook.org/html/13-2-Apa...ersus-CGI.html
http://www.perlmonks.com/?node=apache%3A%3Arequest