in reply to forcing numeric context
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
|
|---|
| Replies are listed 'Best First'. | |
|---|---|
|
Re: Re: forcing numeric context
by John M. Dlugosz (Monsignor) on Dec 18, 2002 at 05:27 UTC |