perl-modperl mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From "Mag Gam" <>
Subject Trying to configure Apache2::Request
Date Sun, 10 Feb 2008 06:57:43 GMT
I have installed Apache2::Request via CPAN, but i keep getting this message
in my error_log

[error] Global symbol "$r" requires explicit package name at
/var/www/perl/ line 10.\n

Apache configuration looks like this:
LoadModule perl_module modules/
LoadModule apreq_module   modules/

<Directory /var/www/perl>
    AddHandler perl-script .pl
    PerlResponseHandler ModPerl::Registry Apache2::Request
    PerlOptions +ParseHeaders +GlobalRequest
    Options +ExecCGI
    PerlModule Apache2::Request looks like this:
#!/usr/bin/perl -w
use strict;
use CGI;
use APR::Request::Apache2 ();

print "Content-type: text/html\n\n";
print "Hello";

my $req = Apache2::Request->new($r, POST_MAX => "1M");

Any thoughts?


View raw message