We don't bite newbies here... much | |
PerlMonks |
Re: hash to hash comparison on large filesby moritz (Cardinal) |
on Apr 08, 2009 at 13:56 UTC ( [id://756339]=note: print w/replies, xml ) | Need Help?? |
You're only iterating over hashes, not using the lookup features. If you do it properly, you'll increase the speed of the loop roughly by the number of elements in %hash2.
Should be better (and faster!) written as
Also note that this code: exhausts the <FH1> iterator for the first value in @allhits, and does nothing for the subsequent values - probably not what you want.
In Section
Seekers of Perl Wisdom
|
|