Though this isn't as efficient as the other solutions, it may be simple enough for what you are after.# Two hashes: %myhash; %b; # Merge them %myhash = %{mergetwohashes(\%myhash, \%b)}; sub mergetwohashes { return { %{$_[0]}, %{$_[1]} }; }
-QM
--
Quantum Mechanics: The dreams stuff is made of
In reply to Re: Modify hash reference itself
by QM
in thread Modify hash reference itself
by Anonymous Monk
| For: | Use: | ||
| & | & | ||
| < | < | ||
| > | > | ||
| [ | [ | ||
| ] | ] |