in reply to
Calculating Row Averages From a CSV File
Or a good ol' one-liner :
perl -Mstrict -MList::Util=sum -wlne 'my @a = grep $_, split /,/; print shift @a, ":", sum(@a) / @a"' test.dat
Comment on
Re: Calculating Row Averages From a CSV File
Download
Code
In Section
Seekers of Perl Wisdom