in reply to Modify hash reference itself
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
|
|---|