good chemistry is complicated, and a little bit messy -LW |
|
PerlMonks |
Re: Count of HoA elementsby ikegami (Patriarch) |
on Jan 19, 2007 at 20:15 UTC ( [id://595569]=note: print w/replies, xml ) | Need Help?? |
No, it shouldn't. @{...} expects that ... retunrns a reference to an array. values %hash does not.
What do you think values does? Returns a list obtained by iterating through the entire hash. And whatever processes the list returned by value has to iterate over that list. These work:
Update:
In Section
Seekers of Perl Wisdom
|
|