Don't ask to ask, just ask | |
PerlMonks |
Re: using hash values inside an array.by Fastolfe (Vicar) |
on May 04, 2002 at 15:54 UTC ( [id://164009]=note: print w/replies, xml ) | Need Help?? |
While other posters mention the use of keys, I just want to point out that if all you're interested in is the values, you can use the values function to just pull those out:
Also, be sure to remember that hash order is not guaranteed. If you need these things to be ordered based on the hash key, you'll need to use sort in conjunction with keys as in others' examples to accomplish this.
In Section
Seekers of Perl Wisdom
|
|