in reply to Re: Filtering Source Text File with 2nd Text File of Terms
in thread Filtering Source Text File with 2nd Text File of Terms

while my $term (<F1>) {

That is a syntax error.    Perhaps you meant:

while ( my $term = <F1> ) {


foreach my $source (<F2>) {

Why would you read in the whole file instead of just reading one line at a time?    Perhaps you meant:

while ( my $source = <F2> ) {

Replies are listed 'Best First'.
Re^3: Filtering Source Text File with 2nd Text File of Terms
by Riales (Hermit) on Apr 03, 2012 at 17:29 UTC

    Argh, you're absolutely right. I guess I was just too eager to fire off my response. I'll change my original post.

Re^3: Filtering Source Text File with 2nd Text File of Terms
by Loops303 (Novice) on Apr 04, 2012 at 04:31 UTC
    Thanks for catching that.