in reply to Combining / Merging two Ho(H|A)s
If you just want the data to be overwritten, it's easy and no loop is needed when you use a hash slice:
@hash1{ keys %hash2 } = values %hash2;
Oh - now I see that you wanted this done recursively. Then you'll need something like GrandFather wrote
|
|---|