Beefy Boxes and Bandwidth Generously Provided by pair Networks
Clear questions and runnable code
get the best and fastest answer
 
PerlMonks  

Newer version of HTML::Parser not compatible with LWP??

by S_Shrum (Pilgrim)
on Jun 02, 2002 at 21:15 UTC ( [id://171071]=perlquestion: print w/replies, xml ) Need Help??

S_Shrum has asked for the wisdom of the Perl Monks concerning the following question:

I have updated all my mods (upgrade -install) and I noticed that I have begun to see this error: LWP module not found! HTML::Parser object version 3.25 does not match bootstrap parameter 3.11 at C:/Perl/lib/DynaLoader.pm line 225

I am quite adept at debugging my own scripts but I fear to tread where others have before especially in the case like this.

What does the error mean exactly? Does LWP *require* HTML::Parser to be version 3.11? What are my options?

Thanx

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

Replies are listed 'Best First'.
(wil) Re: Newer version of HTML::Parser not compatible with LWP??
by wil (Priest) on Jun 02, 2002 at 21:51 UTC
    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

      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

      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: perlquestion [id://171071]
Approved by Corion
help
Chatterbox?
and the web crawler heard nothing...

How do I use this?Last hourOther CB clients
Other Users?
Others meditating upon the Monastery: (7)
As of 2024-04-25 08:00 GMT
Sections?
Information?
Find Nodes?
Leftovers?
    Voting Booth?

    No recent polls found