On Feb 10, 2008 12:14 PM, Mag Gam <[EMAIL PROTECTED]> wrote:
> my Apache2::Request $r = shift;
> Tells the Perl compiler to expect an object in the C
> class to be assigned to C<$r>. A patch has already been submitted to
> use this information so method calls can be resolved at compile time.
Tha
Nice, Thanks!
Just figured this out...
A known disadvantage to Perl method calls is that they are slower than
direct function calls. It is possible to resolve method calls at
compile time, rather than runtime, making method calls just as fast as
subroutine calls. However, there is certain inf
On Feb 10, 2008 1:57 AM, Mag Gam <[EMAIL PROTECTED]> wrote:
> 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 $r = shift;
> my $req = Apache2::Request->new($r, POST_MAX => "1M");
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 modul