Re: Converting HTML to plain text

serkan.ketenci@rumeli.net
Mon, 26 Jul 1999 12:34:19 -0700


> I need to read a large group of html files, one at a time, and output
only
> the text to another file.  I am new to using modules in perl.  I have
been
> putting off learning anything about them until I needed it,  and from
what I
> could glean from my web searches HTML::Parser could make this easy.   
> 
> Is there any sample code that anyone knows of to do what I described
above?
> Or can someone give me some pointers? 
> 
Hi!
If you have a LWP module try :
use LWP::simple;
$content = get('http://www.somewhere.com');
print `echo "$content" > ./file.html `;

if you don't have LWP, you can find it in www.cpan.org
Bye