http://www.perlmonks.org?node_id=456095


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

if you have lynx (a program to browse the World Wide Web which works on simple text terminals) then call it.
$text_only = `lynx -dump $filename`;
OR

If you have Netscape, use its "Save as" option with the type set to "Text". This one works with tables.

  • Comment on Re: How can use Perl to strip away some nested HTML markup code, like <SCRIPT> ?
  • Download Code