http://qs321.pair.com?node_id=6699


in reply to How can use Perl to strip away some nested HTML markup code, like <SCRIPT> ?

Unless you're dealing with very simple HTML (either generated by a program or by a beginner), you might discover that these approaches have limited degrees of success. ender's is the best, as it is least greedy.

For all non-trivial HTML parsing, look to CPAN modules: HTML::Parser and HTML::TokeParser.