I would like to be able to not create the @temparr, if its possible and just do something like:my @temparr = values %arr; my $mean_of_arr = &average(\@temparr);
but obviously that doesn't work.my $mean_of_arr = &average(\@{values %arr});
In reply to passing the reference of hash values array by Anonymous Monk
| For: | Use: | ||
| & | & | ||
| < | < | ||
| > | > | ||
| [ | [ | ||
| ] | ] |