![]() |
|
Just another Perl shrine | |
PerlMonks |
Re: how to insert new line in text file after regex match?by Corion (Patriarch) |
on May 21, 2015 at 10:54 UTC ( #1127335=note: print w/replies, xml ) | Need Help?? |
This is simple - in your loop reading the lines, you remember when you see a line containing first. Then you count and output two more lines, and then output the additional line. If you want to help us help you better, please show us the code you have already written and explain how it fails to do what you want it to do.
In Section
Seekers of Perl Wisdom
|
|