From: Bruce W. <br...@mi...> - 2001-07-25 00:35:27
|
> Can anyone help me with a problem in weather.pl or in my configuration? > When I try to get the weather it gives an error about: Can not find > hparser_xs_state in HTML::Parser hash. I have installed the > HTML::TreeBuilder and HTML::Parse. Probably having problems with this command: $text = HTML::FormatText->new(leftmargin => 0, rightmargin => 150)->format(HTML::TreeBuilder->new()->parse($html)); Copy the attached code to a file, then try it right from perl (e.g. perl test.pl) to see if it works ok. Bruce ------- use lib '/misterhouse/mh/lib/site'; use lib '/misterhouse/mh/lib'; use HTML::FormatText; use HTML::Parse; $html = <<eof; <html> <body> Hi there </body> </html> eof $ascii = HTML::FormatText->new(rightmargin => 100)->format(HTML::TreeBuilder->new()->parse($html)); print "ascii=$ascii\n"; |