perl-modperl mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From Alexander Knack ...@dasburo.de>
Subject [modperl]
Date Thu, 09 Mar 2000 20:11:19 GMT
Apache/Mod_Perl

hi,
just one thing i want to mention.

in a cgi script i do:
use CGI;
my $result = `./foo.pl a=b c=d`;

foo. pl looks like this:
use CGI;
my $q = new CGI (join '&', @ARGV);
print $q->param('a');

what happens is, that foo.pl won't execute because of:
error.log:
Can't locate object method "request" via package "Apache"


it works when i put the line
$CGI::MOD_PERL = 0;
into foo.pl



my httpd.conf:
<Files *.pl>
 SetHandler perl-script
 PerlHandler Apache::Registry
 Options ExecCGI
</Files>
-- 
+--------------------------------------------------------------------+
| Alexander Knack  ........Entropie erfordert keine Wartung .........|
|  dasburo.de      ..................................................| 
+--------------------------------------------------------------------+

Mime
View raw message