On 29 Jun 2001, Chas Owens wrote:

> In cases where you expect 0 to be a valid value it may be better to use
> this construct:
>
> $var = defined($ARGV[0]) ? $ARGV[0] : DEFAULT;

Thanks for pointing that out.  That is a more robust way of doing that.

-- Brett
                                   http://www.chapelperilous.net/btfwk/
------------------------------------------------------------------------
Just because he's dead is no reason to lay off work.

Reply via email to