[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: Catching errors


----- Original Message ----- 
From: "Robert Landrum" <suppressed>
To: "Jonathan Mangin" <suppressed>
Cc: <suppressed>
Sent: Thursday, January 18, 2007 7:08 PM
Subject: Re: Catching errors


> 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

$r is really $r.  I'm sending it to the template and printing
selected bits.  So hitting

http://zeppo/time?foo=George

$req->args_status returns 'Error 0'.  What module is producing
'Error 0' and what does it mean?

--Jon



Mail converted by mhonarc 2.6.15
This archive provided courtesy of JSW4.NET, Internet Hosting Services for Small Business.