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


in reply to I want to save web pages as text rather than as HTML.

You need a true HTML parser to help you get to the particular nodes that you want. Very good write-up here: http://radar.oreilly.com/2014/02/parsing-html-with-perl-2.html