Beefy Boxes and Bandwidth Generously Provided by pair Networks
We don't bite newbies here... much
 
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 ( #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
Node Status?
node history
Node Type: note [id://1005513]
help
Chatterbox?
and the web crawler heard nothing...

How do I use this? | Other CB clients
Other Users?
Others perusing the Monastery: (7)
As of 2014-12-20 06:17 GMT
Sections?
Information?
Find Nodes?
Leftovers?
    Voting Booth?

    Is guessing a good strategy for surviving in the IT business?





    Results (95 votes), past polls