in reply to How can I print hash values when the keys are the values from another hash.
How about something like this (untested):
foreach (keys %hashA) { print "$_ = $hashB{$hashA{$_}} \n"; } [download]