Just a guess - do you need the values in a particular order? That's easy with a hash slice.
my %hash = ( cat => 7, dog => 3, cow => 9, ); my @array = ("dog","cat","cow"); my @ordered_values = @hash{@array}; # (3, 7, 9)
In reply to Re: hash ordered by an array
by Narveson
in thread hash ordered by an array
by coldy
| For: | Use: | ||
| & | & | ||
| < | < | ||
| > | > | ||
| [ | [ | ||
| ] | ] |