Pathologically Eclectic Rubbish Lister | |
PerlMonks |
Re^2: Efficient way to sum columns in a fileby Anonymous Monk |
on Apr 13, 2005 at 13:48 UTC ( [id://447380]=note: print w/replies, xml ) | Need Help?? |
I don't think the '$total += $sub += $F6;' part is doing what you expect it to... Actually, it doesn't add $F6 to both $total and $sub, but rather add it to $sub and then add $sub to $total, which generates a wrong total.
In Section
Seekers of Perl Wisdom
|
|