This snippet runs faster than merging. I don't understand how ??foreach $k (sort keys %hash1) { if (exists($hash2{$k})) { $matchWords++; } }
Originally posted as a Categorized Question.
In reply to Union of Two Hashes by Rajiv
| For: | Use: | ||
| & | & | ||
| < | < | ||
| > | > | ||
| [ | [ | ||
| ] | ] |