Works under strict and warnings. Although I am probably breaking your second rule (creating $_[1]).sub average { map{$_[1]+=$_}@{$_[0]};$_[1]/@{$_[0]} }
In reply to Re: "Junkyard" Puzzle: Average of Numbers
by $code or die
in thread "Junkyard" Puzzle: Average of Numbers
by Masem
| For: | Use: | ||
| & | & | ||
| < | < | ||
| > | > | ||
| [ | [ | ||
| ] | ] |