Beefy Boxes and Bandwidth Generously Provided by pair Networks
Perl Monk, Perl Meditation
 
PerlMonks  

(wil) Re: Newer version of HTML::Parser not compatible with LWP??

by wil (Priest)
on Jun 02, 2002 at 21:51 UTC ( [id://171077]=note: print w/replies, xml ) Need Help??


in reply to Newer version of HTML::Parser not compatible with LWP??

As far as I know, this is a compatibility problem. You should be able to overcome it like by making a few small changes.

The reason you're getting these errors is that there is a dependancy on version 3.25 that from what I've read isn't really necessary. Find the following two lines:

$p->ignore_elements('BODY'); $p->ignore_elements('body');

and delete them. Then, on line 28, change:

use HTML::Parser 3.25; # Need 3.25 for $p->ignore_elements.

into:

use HTML::Parser;

Update: Before you try all this, you should probably try upgrading your version of Perl, too.

Fixed: Line numbering.

- wil

Replies are listed 'Best First'.
Re: (wil) Re: Newer version of HTML::Parser not compatible with LWP??
by S_Shrum (Pilgrim) on Jun 03, 2002 at 01:08 UTC

    ummm...HTML::Parser.pm only goes up to 1091 and LWP::Simple.pm only goes up to 334 and LWP.pm only goes up to 587...

    What file do I need to edit that contains the aforementioned code to delete/change? Am I missing something?

    TIA

    ======================
    Sean Shrum
    http://www.shrum.net

Re: (wil) Re: Newer version of HTML::Parser not compatible with LWP??
by Sinister (Friar) on Jun 03, 2002 at 10:11 UTC
    Somehow this sounds more like a perlish problem, instead of a module dependancy problem.

    If u ask for 3.11 and you have 3.25 of Module::Foo, perl shouldn't raise any problems...

    I have heard our sysops cursing the perl-bootstrap for various reasons, but I don't know the fine details of this. It looks to me as if this might be the cause of your problem.

    er formait hyarya.
    -- "Life is a house and the next tornado is never far away"
    -- "I am lovely by nature"

Log In?
Username:
Password:

What's my password?
Create A New User
Domain Nodelet?
Node Status?
node history
Node Type: note [id://171077]
help
Chatterbox?
and the web crawler heard nothing...

How do I use this?Last hourOther CB clients
Other Users?
Others chilling in the Monastery: (8)
As of 2024-03-28 09:34 GMT
Sections?
Information?
Find Nodes?
Leftovers?
    Voting Booth?

    No recent polls found