perl -lpe '$-+=$_}{$_+=$-}{' [download]
In reply to Re^3: adding a column of integers by Anonymous Monk in thread adding a column of integers by Anonymous Monk