Beefy Boxes and Bandwidth Generously Provided by pair Networks
Your skill will accomplish
what the force of many cannot
 
PerlMonks  

Re: Print n lines after a matched line

by taint (Chaplain)
on Jun 13, 2018 at 22:18 UTC ( [id://1216597]=note: print w/replies, xml ) Need Help??


in reply to Print n lines after a matched line

It's difficult to know how to best respond, or provide the best answer, without a bit more context. IOW you mention match, which is really a simple matter, as described in the linked Perl documentation -- especially if the given text file is static.

But, then again. If you need to further process that file, or perhaps another file. The (best) answer might be quite different.

tl;dr;
You will need to help us, help you.

Evil is good, for without it, Good would have no value
¡λɐp ʇɑəɹ⅁ ɐ əʌɐɥ puɐ ʻꜱdləɥ ꜱᴉɥʇ ədoH

Log In?
Username:
Password:

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

How do I use this?Last hourOther CB clients
Other Users?
Others having an uproarious good time at the Monastery: (4)
As of 2024-04-26 00:21 GMT
Sections?
Information?
Find Nodes?
Leftovers?
    Voting Booth?

    No recent polls found