Beefy Boxes and Bandwidth Generously Provided by pair Networks
good chemistry is complicated,
and a little bit messy -LW
 
PerlMonks  

Re: Filtering Source Text File with 2nd Text File of Terms

by Riales (Hermit)
on Apr 02, 2012 at 23:49 UTC ( #963150=note: print w/replies, xml ) Need Help??

Help for this page

Select Code to Download


  1. or download this
    # Building the array of terms:
    
    ...
        chomp $term;
        push @terms, $term;
    }
    
  2. or download this
    # Printing sources that do not match of of the terms:
    
    ...
        chomp $source;
        print "$source\n" unless grep { $source =~ /$_/ } @terms;
    }
    

Log In?
Username:
Password:

What's my password?
Create A New User
Node Status?
node history
Node Type: note [id://963150]
help
Chatterbox?
and all is quiet...

How do I use this? | Other CB clients
Other Users?
Others surveying the Monastery: (2)
As of 2017-12-16 10:14 GMT
Sections?
Information?
Find Nodes?
Leftovers?
    Voting Booth?
    What programming language do you hate the most?




















    Results (449 votes). Check out past polls.

    Notices?