HTML::FormatText

Bob Webb (bob.webb@snyder.com)
Thu, 5 Mar 1998 14:38:37 -0500


Forgive me for not posting to comp.lang.perl, I do not have access to
newsgroups, they are blocked at my firewall. I installed the libwww pm
without any problems. All I am trying to do is output an html file to
text. I followed the synopsis snytax for FormatText, but I am getting an
error "Undefined subroutine &main::parse_htmlfile called at bw.pl line
5"

Here is the script:

#!/usr/bin/perl

require HTML::FormatText;

$html = parse_htmlfile("quotes");
$formatter = HTML::FormatText->new(leftmargin => 0, rightmargin => 80);
print $formatter->format($html);

What am I doing wrong ?? I know it has to be something stupid since I am
a newbie.

Your help would be appreciated.

Regards,
Bob/