Here's a slightly shorter version of your code: @{$a}{keys %b} = values %b; keys and values always return their results in corresponding order.
In reply to Re: Merging hashes (clobber duplicate keys)
by chipmunk
in thread Merging hashes (clobber duplicate keys)
by baku
| For: | Use: | ||
| & | & | ||
| < | < | ||
| > | > | ||
| [ | [ | ||
| ] | ] |