in reply to How to compute the avg of a column of numbers
die,unless@ARGV;for(@ARGV){$n+=$_;$c++;}$t=$n/$c;print $t; [download]