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

Re: How to print the lines immediately above and below a matching line?

by Kenosis (Priest)
on Nov 25, 2012 at 18:37 UTC ( [id://1005513]=note: print w/replies, xml ) Need Help??

Help for this page

Select Code to Download


  1. or download this
    use strict;
    use warnings;
    ...
    Another match this blank above
    Second to the last line
    The last line match this
    
  2. or download this
    -------------------------
    The first line match this
    ...
    Second to the last line
    The last line match this
    -------------------------
    
  3. or download this
    use strict;
    use warnings;
    ...
    Another match this blank above
    Second to the last line
    The last line match this
    
  4. or download this
    The first line match this
    Not this
    ...
    Another match this blank above
    Second to the last line
    The last line match this
    

Log In?
Username:
Password:

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

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

    No recent polls found