Beefy Boxes and Bandwidth Generously Provided by pair Networks
"be consistent"
 
PerlMonks  

Re: Print n lines after a matched line

by Discipulus (Canon)
on Jun 13, 2018 at 18:36 UTC ( [id://1216578]=note: print w/replies, xml ) Need Help??

Help for this page

Select Code to Download


  1. or download this
    while (<DATA>){
        print if /SCHEDULE "DUMMY CHECK"/ .. /INTERVAL/;
    }
    
  2. or download this
    my $switch;
    while (<DATA>){
    ...
            print;
        }
    }
    

Log In?
Username:
Password:

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

How do I use this?Last hourOther CB clients
Other Users?
Others about the Monastery: (3)
As of 2024-04-25 19:34 GMT
Sections?
Information?
Find Nodes?
Leftovers?
    Voting Booth?

    No recent polls found