Beefy Boxes and Bandwidth Generously Provided by pair Networks
We don't bite newbies here... much
 
PerlMonks  

Re^2: [Solved]Need to extract a particular block of lines between two patterns

by chengchl (Acolyte)
on Nov 11, 2017 at 01:38 UTC ( [id://1203157]=note: print w/replies, xml ) Need Help??


in reply to Re: [Solved]Need to extract a particular block of lines between two patterns
in thread [Solved]Need to extract a particular block of lines between two patterns

Hi Cristoforo,

Thank you so much for your help. Please correct me if I understand it wrong - the code will skip the first START ... END pattern but will output the all the following patterns right? That is to say, the third START .. END pattern will be printed out as well even if it's not wanted?

Thank you so much for the help again!

  • Comment on Re^2: [Solved]Need to extract a particular block of lines between two patterns

Replies are listed 'Best First'.
Re^3: [Solved]Need to extract a particular block of lines between two patterns
by Cristoforo (Curate) on Nov 11, 2017 at 02:53 UTC
    Yes, it will skip the first block. It will exit the while loop (last if /^END$/) when it reaches the END for the second block.

Log In?
Username:
Password:

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

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

    No recent polls found