How about this?:
my %hashA = ( this => 'A', that => 'B', other => 'C' ); my %hashB = ( A => 'aye', B => 'bee', C => 'see' ); { local $" = "\n"; print "@hashB{ values( %hashA ) }\n"; }
Dave
In reply to Re: How can I print hash values when the keys are the values from another hash.
by davido
in thread How can I print hash values when the keys are the values from another hash.
by boat73
| For: | Use: | ||
| & | & | ||
| < | < | ||
| > | > | ||
| [ | [ | ||
| ] | ] |