http://www.perlmonks.org?node_id=531879


in reply to Re: Combining / Merging two Ho(H|A)s
in thread Combining / Merging two Ho(H|A)s

Very very good point. It is possible. I'd say the first hash's value should be overwritten by the second one.
GrandFather's code can be easily changed to check for REF differences and act accordingly.

Replies are listed 'Best First'.
Re^3: Combining / Merging two Ho(H|A)s
by jdporter (Paladin) on Feb 22, 2006 at 13:54 UTC

    Right; but I would definitely look into Hash::Merge (Roy_Johnson's suggestion).

    We're building the house of the future together.