Which itself can be reduced to %a = (%a, %b);. Granted if you wanted to preserve the elements of either hash, you would have to use the above method. I presume the behavior is undefined, but on my machine:
%a = (%a, %b); # common elements contain %b's values %a = (%b, %a); # common elements contain %a's values
In reply to Re^2: Hash merging!
by eibwen
in thread Hash merging!
by jerry.hone
| For: | Use: | ||
| & | & | ||
| < | < | ||
| > | > | ||
| [ | [ | ||
| ] | ] |