If it's HTML use a suitable module. You don't tell us what you want to do with the contents of the file so it's hard to advise on the most suitable module, however HTML::TreeBuilder addresses may HTML parsing and munging needs.
In reply to Re: Remove multiple lines between two patterns
by GrandFather
in thread Remove multiple lines between two patterns
by jcvivar
| For: | Use: | ||
| & | & | ||
| < | < | ||
| > | > | ||
| [ | [ | ||
| ] | ] |