perl -lne "$sum+=$_}{print $sum"
In reply to Re: adding a column of integers by ccn in thread adding a column of integers by Anonymous Monk