in reply to passing the reference of hash values array
my $mean_of_arr = &average( [ values %arr ] );
[LIST] creates an anonymous array ref.
but why do you use this old function &call syntax?
Cheers Rolf
|
|---|
| Replies are listed 'Best First'. | |
|---|---|
|
Re^2: passing the reference of hash values array
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 |