Beefy Boxes and Bandwidth Generously Provided by pair Networks
XP is just a number
 
PerlMonks  

Re^2: Extract lines between two patterns

by mnithink (Initiate)
on Jan 22, 2012 at 07:21 UTC ( [id://949234]=note: print w/replies, xml ) Need Help??

Help for this page

Select Code to Download


  1. or download this
    perl -ne 'print if /Pattern1/ .. /Pattern2/' file1
    
  2. or download this
    #!/usr/bin/perl
    use strict;
    ...
       if (/Pattern1 .. /Pattern2/)
      {printf $log;}
    }
    
  3. or download this
    "Use of uninitialized value in pattern match (m//) at temp.pl line 11.
    +"
    

Log In?
Username:
Password:

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

How do I use this?Last hourOther CB clients
Other Users?
Others studying the Monastery: (4)
As of 2024-03-29 11:41 GMT
Sections?
Information?
Find Nodes?
Leftovers?
    Voting Booth?

    No recent polls found