?$flag =1 if /pattern/; print NEW $lastln unless $flag; $lastln = $_; if ($flag and /end_pattern/) { $lastln = ''; $flag = 0; }
In reply to Re: Re: Parsing file and removing a section
by petral
in thread Parsing file and removing a section
by brendonc
| For: | Use: | ||
| & | & | ||
| < | < | ||
| > | > | ||
| [ | [ | ||
| ] | ] |