Beefy Boxes and Bandwidth Generously Provided by pair Networks
Just another Perl shrine
 
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 contemplating the Monastery: (5)
As of 2018-07-16 03:22 GMT
Sections?
Information?
Find Nodes?
Leftovers?
    Voting Booth?
    It has been suggested to rename Perl 6 in order to boost its marketing potential. Which name would you prefer?















    Results (330 votes). Check out past polls.

    Notices?