in reply to How can I download HTML and save it as txt?

Here's one way I can think of:
use LWP::Simple; use HTML::TreeBuilder; use IO::File; IO::File ->new( "> $file" ) ->print( HTML::TreeBuilder ->new_from_content( get $url ) ->as_text )
Short and sweet. But lacking any kind of error handling. :-(