Another way:
@my_hash{keys %my_second_hash} = values %my_second_hash;
The keys from %my_second_hash will clobber any duplicates that are in %my_hash.
In reply to Re: Combining two hashes
by revdiablo
in thread Combining two hashes
by Anonymous Monk
| For: | Use: | ||
| & | & | ||
| < | < | ||
| > | > | ||
| [ | [ | ||
| ] | ] |