|Perl Monk, Perl Meditation|
Filtering Source Text File with 2nd Text File of Termsby Loops303 (Novice)
|on Apr 02, 2012 at 22:57 UTC||Need Help??|
Loops303 has asked for the
wisdom of the Perl Monks concerning the following question:
Hello, I am a novice at Perl.
I have a SOURCE text file with a list of strings, such as
and a 2nd text file FILTER TERMS with a list of terms such as
What I want to do is read the 2nd file and using the list of those terms, to filter out the first file.
The desired end result OUTPUT would be
It would not write
http://www.google.com --- because it matches the "google"
Can anyone please help me figure out how to do this?Here is the code I have thus far (this is the 20th iteration of various attempts, having spent about 5 hours on this already today --- see, I am new at this!)