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
In reply to Re: Combining / Merging two Ho(H|A)s
by Corion
in thread Combining / Merging two Ho(H|A)s
by jkva
| For: | Use: | ||
| & | & | ||
| < | < | ||
| > | > | ||
| [ | [ | ||
| ] | ] |