This lets you define the line you want to skip, a block delimited by two special lines and lines in a certain numeric range.while(<>) { next if (/line that i want to skip/); $skip=1 if(/line marking beginning of skip block/); $skip=0 if(/line marking end of skip block/); print unless ($skip || ($.<$startline && $.>endline); }
In reply to Re: Stripping tags from a PerlMonks page.
by fundflow
in thread Stripping tags from a PerlMonks page.
by dmtelf
| For: | Use: | ||
| & | & | ||
| < | < | ||
| > | > | ||
| [ | [ | ||
| ] | ] |