![]() |
|
go ahead... be a heretic | |
PerlMonks |
Re^3: Faster grep in a huge file(10 million)by Cristoforo (Curate) |
on May 10, 2013 at 22:34 UTC ( #1033051=note: print w/replies, xml ) | Need Help?? |
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};
In Section
Seekers of Perl Wisdom
|
|