in reply to Re^2: sum of integers in a column
in thread sum of integers in a column

You're quite right. Initially I wrote it with a for my $i (...) {...} loop but then thought I could do it with a postfix for. Forgot to replace that one instance of $i with $_. Corrected. Thank you :)

Replies are listed 'Best First'.
Re^4: sum of integers in a column
by mjscott2702 (Pilgrim) on Oct 12, 2010 at 12:44 UTC
    Luckily using strict and warnings would have highlighted the typo :)
Re^4: sum of integers in a column
by ww (Archbishop) on Oct 12, 2010 at 22:00 UTC
    - - for failure to add the pragmas you advocated -- which would have shown you that your correction is still incorrect.