Just another Perl shrine | |
PerlMonks |
Union of Two Hashesby Rajiv (Initiate) |
on Apr 09, 2002 at 13:37 UTC ( [id://157715]=perlquestion: print w/replies, xml ) | Need Help?? |
Rajiv has asked for the wisdom of the Perl Monks concerning the following question: ⭐ (hashes)
I want to find the union of two hashes. I tried the option of merging the two hashes, but found that relatively slower. Can anybody suggest me a good optimized code for getting the union of two hashes. The option that i am trying looks like this:
This snippet runs faster than merging. I don't understand how ?? Originally posted as a Categorized Question.
Back to
Seekers of Perl Wisdom
|
|