in reply to "Junkyard" Puzzle: Average of Numbers
sub avg { (map{(1)x$_}@{$_[0]})/@{$_[0]} } [download]