Beefy Boxes and Bandwidth Generously Provided by pair Networks
Do you know where your variables are?
 
PerlMonks  

Re: how to check for a word in a file and if found remove that line, the above line and the below line from the file.

by mr_mischief (Monsignor)
on Jan 20, 2016 at 18:35 UTC ( [id://1153196]=note: print w/replies, xml ) Need Help??

Help for this page

Select Code to Download


  1. or download this
    print me
    exclude me
    ...
    match me
    exclude me
    print me
    
  2. or download this
    print me
    exclude me
    ...
    would match me but the above line excluded me
    print me anyway because the previous line wasn't matched after exclusi
    +on
    print me
    
  3. or download this
    #!/usr/bin/perl
    use strict;
    ...
        return \%options;
    }
    

Log In?
Username:
Password:

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

How do I use this?Last hourOther CB clients
Other Users?
Others examining the Monastery: (5)
As of 2024-03-28 19:38 GMT
Sections?
Information?
Find Nodes?
Leftovers?
    Voting Booth?

    No recent polls found