Perl: the Markov chain saw | |
PerlMonks |
Re^2: sum of integers in a columnby mjscott2702 (Pilgrim) |
on Oct 12, 2010 at 12:36 UTC ( [id://864843]=note: print w/replies, xml ) | Need Help?? |
Shouldn't that be:
$sum[$_] += $column[$_] for 0..$#column;
I presume the $i should actually be the default index variable $_ generated by the for loop?
In Section
Seekers of Perl Wisdom
|
|