in reply to Stripping tags from a PerlMonks page.
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); }
|
|---|
| Replies are listed 'Best First'. | |
|---|---|
|
RE: Re: Stripping tags from a PerlMonks page.
by davorg (Chancellor) on Jul 25, 2000 at 17:42 UTC |