perl-modperl mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From Robert Landrum <rland...@aol.net>
Subject Re: Catching errors
Date Fri, 19 Jan 2007 00:08:26 GMT
Jonathan Mangin wrote:
> 
> sub handler {
>    my $r = shift;
>    my $req = Apache2::Request->new($r);
>    my $foo;
> #   eval {$foo = $req->param('foo')};
>    $foo = $req->param('foo');

You might want to make sure $r is really $r.  If you configure apache 
such that you use PerlHandler Foo->handler, I believe the first argument 
is 'Foo', followed by $r.

Rob

Mime
View raw message