|laziness, impatience, and hubris|
Re: Comparing large filesby BrowserUk (Pope)
|on Feb 11, 2014 at 19:30 UTC||Need Help??|
I have two large (10Mg plus)
10 Milligram files? Must be light words :)
Assuming you mean 10 million, and you have at least 2GB of ram, then:
Load the first file of words into a hash.
Read the second file line by line and check if the word is in the hash.
Don't forget to chomp the newlines.
With the rise and rise of 'Social' network sites: 'Computers are making people easier to use everyday'
Examine what is said, not who speaks -- Silence betokens consent -- Love the truth but pardon error.
"Science is about questioning the status quo. Questioning authority".
In the absence of evidence, opinion is indistinguishable from prejudice.