perl -ne '$sum += $_; END { print $sum }'
--MidLifeXis
In reply to Re: How can I write this in a "simpler" way? by MidLifeXis in thread How can I write this in a "simpler" way? by Anonymous Monk