perl -ple '$_=$s+=$_' [download]
In reply to Re: adding a column of integers by borisz in thread adding a column of integers by Anonymous Monk