foreach my $tmp (@a1){ push @a2, $h1{$tmp}; } [download]
Edit by tye, title, CODE tags
In reply to getting array of values from hash by twinsen