On Thu, 5 Oct 2000, Dana C. Chandler III wrote:

> In my limited experience, it is Perl in general that treats the value 0,
> in a query string as the empty string.  In all of the scripts I have
> written, if 0 is possible as a param value, I have to explicity check
> for 0.  

This is only the case when you're going:

if ($r->param('name')) {
        # do something
}

if its a zero then you should expect to be bitten in the ass by that
one. However I do assume that there's similar code going on somewhere to
turn the zero into undef.

-- 
<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