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.
- Optional Variables Kim Green
- Re: Optional Variables Me
- Optional Variables Kim Green
- Re: Optional Variables Brett W. McCoy
- Re: Optional Variables Chas Owens
- Re: Optional Variables Brett W. McCoy
- Re: Optional Variables Randal L. Schwartz
- RE: Optional Variables John Edwards
- FW: Optional Variables Kim Green
- Re: FW: Optional Variables Chas Owens
- Re: FW: Optional Variables Chas Owens
- Re: Optional Variables Evgeny Goldin (aka Genie)
- Re: Optional Variables M.W. Koskamp
- Re: Optional Variables Brett W. McCoy
- Re: Optional Variables M.W. Koskamp
- Re: Optional Variables Brett W. McCoy