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

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

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

Smylers