in reply to Numerical value of strings
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"; [download]
outputs 57, as expected
cheers
thinker