From: Bruce W. <br...@mi...> - 2002-01-22 14:24:18
|
> I noticed that someone else came across this error when they loaded the > latest HTML::Parser from CPAN. Was there a resolution to the > problem? This > on a Linux build running the latest MH (v2.63). I get the error > when I try > to run some of the Perl scripts, i.e. > > 01/20/02 09:18:46 PM Retrieving top10 list from the net ... > Retrieving (with simple) http://www.cbs.com/latenight/lateshow/# into > /home/alex/misterhouse/data/web/top10_list.html ...Error in user > code: Can't > find '_hparser_xs_state' element in HTML::Parser hash at (eval 56) line > 1309. > > My install of HTML::Parser was clean without any errors during make test. I was able to re-create this on a newer linux install (worked ok on windows and an older linux). It is caused by code in mh/lib/handy_net_utilites where we try to point to our local copy of HTML::FormatText, as the one release extracts data out of tables without leaving blanks in, which makes it hard to process tables like we get in internet_iridium.pl. Anyways, it looks like somehow our FormatText override is some how partially overriding the Parser code also. To fix it, add the 2nd to lines here, to also point to the mh copy of the parser code: require './../lib/site/HTML/FormatText.pm'; require './../lib/site/HTML/Parse.pm'; # Without these we get HTML::Parser errors ... not sure why require './../lib/site/HTML/Parser.pm'; Bruce |