Hi mgdude
I can't replicate this on my RedHat 9 machine.
my total = 0; my @arr = (" 7", 8, " 9", 10, 11 , " 12 "); $total += $_ for @arr; print "$t\n";
outputs 57, as expected
cheers
thinker
In reply to Re: Numerical value of strings
by thinker
in thread Numerical value of strings
by mgdude
| For: | Use: | ||
| & | & | ||
| < | < | ||
| > | > | ||
| [ | [ | ||
| ] | ] |