Try a hash slice:
my @value_table = @hash{ @keys };
Slices are discussed in perldata. Conveniently, slices preserve key order.
If you're collecting all the values held in the hash, and don't care about order, just invoke values.
my @value_table = values %hash;
Dave
In reply to Re: list values of specific hash keys
by davido
in thread list values of specific hash keys
by sorenjul
| For: | Use: | ||
| & | & | ||
| < | < | ||
| > | > | ||
| [ | [ | ||
| ] | ] |