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
In reply to Re: passing the reference of hash values array
by LanX
in thread passing the reference of hash values array
by Anonymous Monk
| For: | Use: | ||
| & | & | ||
| < | < | ||
| > | > | ||
| [ | [ | ||
| ] | ] |