in reply to How to compute the avg of a column of numbers
neniro#!/usr/bin/perl use strict; use warnings; use List::Util qw( sum ); my @box = ( 100, 200, 300 ); my $average = (@box) ? (sum (@box) / scalar @box) : 0 ; print $average, "\n";
Oh, i missed Art_XIVs node, suggesting the same.
|
|---|