Beefy Boxes and Bandwidth Generously Provided by pair Networks
Perl-Sensitive Sunglasses
 
PerlMonks  

Re^3: Faster grep in a huge file(10 million)

by Cristoforo (Deacon)
on May 10, 2013 at 22:34 UTC ( #1033051=note: print w/ replies, xml ) Need Help??


in reply to Re^2: Faster grep in a huge file(10 million)
in thread Faster grep in a huge file(10 million)

print $line if defined $file2{$line};
I think that finds lines in file 1 that are also in file 2. To find lines in file 1 not in file 2, maybe change that to:

print $line unless defined $file2{$line};


Comment on Re^3: Faster grep in a huge file(10 million)
Download Code

Log In?
Username:
Password:

What's my password?
Create A New User
Node Status?
node history
Node Type: note [id://1033051]
help
Chatterbox?
and the web crawler heard nothing...

How do I use this? | Other CB clients
Other Users?
Others chilling in the Monastery: (6)
As of 2015-07-08 03:41 GMT
Sections?
Information?
Find Nodes?
Leftovers?
    Voting Booth?

    The top three priorities of my open tasks are (in descending order of likelihood to be worked on) ...









    Results (94 votes), past polls