in reply to Combining two hashes
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.
|
|---|
| Replies are listed 'Best First'. | |
|---|---|
|
Re^2: Combining two hashes
by dug (Chaplain) on May 17, 2005 at 23:52 UTC |