Beefy Boxes and Bandwidth Generously Provided by pair Networks
Perl-Sensitive Sunglasses
 
PerlMonks  

[Solved]Need to extract a particular block of lines between two patterns

by chengchl (Acolyte)
on Nov 09, 2017 at 00:39 UTC ( [id://1202989]=perlquestion: print w/replies, xml ) Need Help??

Help for this page

Select Code to Download


  1. or download this
    abc
    efg
    ...
    END
    
    ...
    
  2. or download this
     
    my $count = 0;
     11 while (<$fh_r>) {
    ...
     14     print if ($count == 2);
     15   }
     16 }
    

Log In?
Username:
Password:

What's my password?
Create A New User
Domain Nodelet?
Node Status?
node history
Node Type: perlquestion [id://1202989]
Approved by beech
Front-paged by kcott
help
Chatterbox?
and the web crawler heard nothing...

How do I use this?Last hourOther CB clients
Other Users?
Others romping around the Monastery: (3)
As of 2024-04-26 02:22 GMT
Sections?
Information?
Find Nodes?
Leftovers?
    Voting Booth?

    No recent polls found