If you want it to be zero why not just make it so. If will still eval as false in conditionals...
use warnings; my $v = ''; $v ||= 0; print "\$v = '$v'";
cheers
tachyon
s&&rsenoyhcatreve&&&s&n.+t&"$'$`$\"$\&"&ee&&y&srve&&d&&print
In reply to Re: forcing numeric context
by tachyon
in thread forcing numeric context
by John M. Dlugosz
| For: | Use: | ||
| & | & | ||
| < | < | ||
| > | > | ||
| [ | [ | ||
| ] | ] |