Think about Loose Coupling | |
PerlMonks |
RE: Merging hashesby Anonymous Monk |
on Dec 30, 1999 at 10:13 UTC ( [id://1565]=note: print w/replies, xml ) | Need Help?? |
how about just this:
%foo = (%foo, %bar);
the "(" cats the hashes in array context, making one long array with an even number of elements, then assigns that to a hash.
Of course this is memory intensive for large hashes. So this is really not very good after all. I must meditate some more in silence...
In Section
Meditations
|
|