> -----Original Message-----
> From: Matt Sergeant [mailto:[EMAIL PROTECTED]]
> Sent: Thursday, October 05, 2000 9:57 AM
> To: Dana C. Chandler III
> Cc: [EMAIL PROTECTED]; [EMAIL PROTECTED]
> Subject: Re: Apache::Request and parameters = 0
> 
> 
> On Thu, 5 Oct 2000, Dana C. Chandler III wrote:
> 
> > Yes, in particular,
> > 
> > $value = $r->param('name') || "";
> 
> Or worse, $r->param('name') || "3"; # default but true
> 
> Even I'm guilty of that one sometimes :-)

well, I suppose we are all guilty of that one...  perl hubris to the extreme
:)

however, just for clarity, I don't see how this is a bug in Apache::Request
(as you originally pointed out)...

#!/usr/bin/perl
use Apache::Request;
my $r = Apache::Request->new(shift);
my $value = $r->param('foo');

$r->send_http_header('text/plain');
print "foo: $value\n";
print "foo is undefined" unless defined $value;

/perl-bin/foo.pl?foo=0 produces:
foo: 0

which doesn't look like a bug to me.

--Geoff


> 
> -- 
> <Matt/>
> 
> ** Director and CTO **
> **  AxKit.com Ltd   **  ** XML Application Serving **
> ** http://axkit.org **  ** XSLT, XPathScript, XSP  **
> **     Personal Web Site: http://sergeant.org/     **
> 

Reply via email to