XP is just a number | |
PerlMonks |
Re^3: Merge Hashrefsby LanX (Saint) |
on Oct 15, 2014 at 15:40 UTC ( [id://1103921]=note: print w/replies, xml ) | Need Help?? |
> But this goes only one level deep. Of course! Since there are many possible interpretations of what a "deep merge" should do, you should script it in a recursive way after your well defined needs.¹
Cheers Rolf (addicted to the Perl Programming Language and ☆☆☆☆ :)
updatesee also how to merge hash deeply ? ¹) for example what do you expect to happen if both hashes have the same scalar entry?
In Section
Seekers of Perl Wisdom
|
|