Anonymous Monk has asked for the wisdom of the Perl Monks concerning the following question:
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});
|
|---|
| Replies are listed 'Best First'. | |
|---|---|
|
Re: passing the reference of hash values array
by LanX (Saint) on Nov 17, 2010 at 02:03 UTC | |
by Anonymous Monk on Nov 17, 2010 at 02:08 UTC | |
by LanX (Saint) on Nov 17, 2010 at 02:12 UTC | |
by Anonymous Monk on Nov 17, 2010 at 02:16 UTC | |
by LanX (Saint) on Nov 17, 2010 at 02:38 UTC | |
|
Re: passing the reference of hash values array
by PeterPeiGuo (Hermit) on Nov 17, 2010 at 02:07 UTC | |
|
Re: passing the reference of hash values array
by roboticus (Chancellor) on Nov 17, 2010 at 02:03 UTC |