in reply to Re^5: RFC: Should join subsume reduce?
in thread RFC: Should join subsume reduce?

Ahem. One slight correction. Instead of the functional looking...
sub average { my $average; $average = sum(@_)/ scalar(@_); return($average); }
...which is really just a verbose way of saying...
sub average { sum(@_) / scalar(@_) }
...I'm sure you meant the much easier to understand alternative...
sub average { my @arr = @_; my $average = 0; my $length = @arr; for(my $x=0; $x<$#arr; $x++) { $average = $average + $arr[$x]/$length; } return $average; }