0 (zero) evaluates to false.
$_ eq '' ? default : $_ or
$_ eq "" ? default : $_
seems to be what you want
In reply to Re: confused w/ map and trueness
by mikeraz
in thread confused w/ map and trueness
by Anonymous Monk
| For: | Use: | ||
| & | & | ||
| < | < | ||
| > | > | ||
| [ | [ | ||
| ] | ] |