in reply to
update a hash with a hash
It's not as efficient as friedo's solution, but I generally find myself writing:
%hash1 = (%hash1, %hash2);
[download]
In other words, "hash1 is itself, plus all of hash2, using hash2's values where they conflict."
rjbs
Comment on
Re: update a hash with a hash
Download
Code
In Section
Seekers of Perl Wisdom