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

I have problems understanding your question, but at least one of the following modules should help you.

Any of LWP::Simple, LWP::UserAgent and WWW::Mechanize will help you download a web page.

As for converting the HTML to text, HTML::FormatText and possibly HTML::FormatText::WithLinks should be of interest.

Update: I see others have already posted answers. InfiniteSilence posted an example of downloading a web page and saving it as HTML in a file with the extention .txt. jeffa posted an example of converting HTML to text. Pick and choose what you want.