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"; }

No good deed goes unpunished. -- (attributed to) Oscar Wilde
  • Comment on Re: How can I print hash values when the keys are the values from another hash.
  • Download Code