Beefy Boxes and Bandwidth Generously Provided by pair Networks
go ahead... be a heretic
 
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