------=_Part_28483_6532347.1202626663624
Content-Type: text/plain; charset=UTF-8
Content-Transfer-Encoding: 7bit
Content-Disposition: inline

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/doc.pl line 10.\n

Apache configuration looks like this:
LoadModule perl_module modules/mod_perl.so
LoadModule apreq_module modules/mod_apreq2.so



AddHandler perl-script .pl
PerlResponseHandler ModPerl::Registry Apache2::Request
PerlOptions +ParseHeaders +GlobalRequest
Options +ExecCGI
DirectoryIndex new_home.pl

PerlModule Apache2::Request



doc.pl 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?

TIA

------=_Part_28483_6532347.1202626663624
Content-Type: text/html; charset=UTF-8
Content-Transfer-Encoding: 7bit
Content-Disposition: inline

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/doc.pl line 10.\n

Apache configuration looks like this:

LoadModule perl_module modules/mod_perl.so
LoadModule apreq_module   modules/mod_apreq2.so


<Directory /var/www/perl>
    AddHandler perl-script .pl
    PerlResponseHandler ModPerl::Registry Apache2::Request

    PerlOptions +ParseHeaders +GlobalRequest
    Options +ExecCGI
    DirectoryIndex new_home.pl
</Directory>
    PerlModule Apache2::Request



doc.pl 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?

TIA


------=_Part_28483_6532347.1202626663624--