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

perl -lpe '$-+=$_}{$_+=$-}{'

Replies are listed 'Best First'.
Re^4: adding a column of integers
by Smylers (Pilgrim) on Sep 03, 2004 at 08:31 UTC

    That's overkill; miss out 3 of the characters and it still works:

    perl -lpe '$-+=$_}{$_=$-'

    Smylers