in reply to
Comparing strings (exact matches) in LARGE numbers FAST
Take a look at
Matching data between huge files
, it talks about a very similar problem and has many interesting solutions.
Comment on
Re: Comparing strings (exact matches) in LARGE numbers FAST
In Section
Seekers of Perl Wisdom