John Powell <[EMAIL PROTECTED]> writes:
> 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');
Try to add this here:
die "Can't open file" unless $htmldata;
> >$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?