in reply to "" isn't numeric...
This is just a warning, not an error. You could always use the ||= operator to force an empty string to 0
It is a minor nuisance, but it is a nice warning to know about it, as it might lead to unexpected results down the road.use warnings; my $numb = ''; print $numb + 5; # issues warning $numb ||= 0; print $numb +5; # no warning
jeffa
L-LL-L--L-LL-L--L-LL-L-- -R--R-RR-R--R-RR-R--R-RR B--B--B--B--B--B--B--B-- H---H---H---H---H---H--- (the triplet paradiddle with high-hat)
|
|---|
| Replies are listed 'Best First'. | |
|---|---|
|
Re^2: "" isn't numeric...
by davidrw (Prior) on Oct 14, 2005 at 20:01 UTC |