Please copy me directly on the reply as currently am not involved
enough with PERL to subscribe to this list.
I am a PERL newbie and I found a PERL snipplet for converting
HTML2TEXT but I am having trouble getting it running:
>cat html2txt.pl
>#!/usr/bin/perl
>
>package html2text ;
>
>require HTML::Parse;
>require HTML::FormatText;
>
>$htmldata = HTML::Parse::parse_htmlfile('hbccheck.html');
>$formatter = new HTML::FormatText;
>$textdata = $formatter->format($htmldata);
>print $textdata;
When I run it I get:
>html2txt.pl
>Can't call method "traverse" without a package or object reference at
>/usr/local/lib/perl5/site_perl/HTML/Formatter.pm line 94.
Any ideas as to what I am missing?
I think that this is very cool and would love to get it running for the
FREENET site I work on to convert some HTML reports to text for our PINE
users.
Thanx,
John