my $total=0; map($total+=$_,@values); my $average = @values ? $total / @values : 0;
In reply to Re: How to compute the avg of a column of numbers
by matija
in thread How to compute the avg of a column of numbers
by cosmicsoup
| For: | Use: | ||
| & | & | ||
| < | < | ||
| > | > | ||
| [ | [ | ||
| ] | ] |