Think about Loose Coupling | |
PerlMonks |
Re^2: how to check for a word in a file and if found remove that line, the above line and the below line from the file.by ikegami (Patriarch) |
on Jan 22, 2016 at 16:45 UTC ( [id://1153386]=note: print w/replies, xml ) | Need Help?? |
You can simplify by only keeping the lines you might want to print in the buffer. See Re: how to check for a word in a file and if found remove that line, the above line and the below line from the file.
In Section
Seekers of Perl Wisdom
|
|