There's more than one way to do things | |
PerlMonks |
Remove lines from a file based on a second fileby Anonymous Monk |
on Oct 14, 2011 at 15:50 UTC ( [id://931544]=perlquestion: print w/replies, xml ) | Need Help?? |
Anonymous Monk has asked for the wisdom of the Perl Monks concerning the following question:
Greetings,
I've got two files - a long CSV file, and another long file with a list of values in it. I need to remove from the long CSV file all of the entries where field 2 in the CSV matches any value in the long file. I can see loading the two into perl arrays, but I'm hoping there is a way to do this without two nested loops inside the perl script. Any suggestions?
Thanks
Back to
Seekers of Perl Wisdom
|
|