Beefy Boxes and Bandwidth Generously Provided by pair Networks
Keep It Simple, Stupid
 
PerlMonks  

Re^5: Search and delete lines based on string matching

by imp (Priest)
on Mar 13, 2007 at 14:57 UTC ( [id://604560]=note: print w/replies, xml ) Need Help??

Help for this page

Select Code to Download


  1. or download this
    my $pattern = '\b(?:' . join('|', @tokens) . ')\b';
    
  2. or download this
    my $pattern = join('|', @tokens);
    
  3. or download this
    my $pattern = '^(?:' . join('|', @tokens) . ')[^a-zA-Z]*$';
    
  4. or download this
    #!/usr/local/bin/perl
    use strict;
    ...
    }
    close($infile);
    close($outfile);
    

Log In?
Username:
Password:

What's my password?
Create A New User
Domain Nodelet?
Node Status?
node history
Node Type: note [id://604560]
help
Chatterbox?
and the web crawler heard nothing...

How do I use this?Last hourOther CB clients
Other Users?
Others chanting in the Monastery: (4)
As of 2024-04-24 20:34 GMT
Sections?
Information?
Find Nodes?
Leftovers?
    Voting Booth?

    No recent polls found