Do you know where your variables are? | |
PerlMonks |
Re: another variation (variable set to 0 ? 0 : 1)by sauoq (Abbot) |
on Sep 07, 2002 at 04:51 UTC ( [id://195836]=note: print w/replies, xml ) | Need Help?? |
return $status && 1; # canonize false, leave true as-is That would be great except it doesn't canonize false. It returns $status if $status is false. So, for example, if $status is "" it will return "", not 0. -sauoq "My two cents aren't worth a dime.";
In Section
Seekers of Perl Wisdom
|
|