I am a Perl newbie who decided to try parsing XML using the code and suggested libraries from this tutorial. I am having issues including libraries such as XML::TreeBuilder and HTML::TreeBuilder. I downloaded the code from CPAN (due to various issues with the computers at work, I cannot use "ppm") and put it in the correct directory, but when I try to compile either the Makefile.pl, I get the following error:

C:\Temp\TreeBuilder\XML-TreeBuilder-3.09>perl MakeFile.PL Warning: prerequisite HTML::Element failed to load: HTML::Parser objec +t version 3.26 does not match bootstrap parameter 3.66 at C:/Perl/lib +/DynaLoader.pm line 25. Compilation failed in require at C:/Perl/site/lib/HTML/Entities.pm lin +e 79. Compilation failed in require at C:/Perl/lib/HTML/Element.pm line 15. BEGIN failed--compilation aborted at C:/Perl/lib/HTML/Element.pm line +15. Compilation failed in require at (eval 4) line 3. Writing Makefile for XML-TreeBuilder

I get a similar error message when I try to compile simple code like:

#!/usr/bin/perl -w # # Perform skeleton remapping for given mesh # use XML::TreeBuilder; my $file = $ARGV[0]; my $tree = XML::TreeBuilder->new(); $tree->parse_file($file);

I'm sure I'm missing something obvious here... could anyone enlighten me?


In reply to Bootstrap Version Issues including HTML and XML libraries by DugganSC

Title:
Use:  <p> text here (a paragraph) </p>
and:  <code> code here </code>
to format your post, it's "PerlMonks-approved HTML":



  • Posts are HTML formatted. Put <p> </p> tags around your paragraphs. Put <code> </code> tags around your code and data!
  • Titles consisting of a single word are discouraged, and in most cases are disallowed outright.
  • Read Where should I post X? if you're not absolutely sure you're posting in the right place.
  • Please read these before you post! —
  • Posts may use any of the Perl Monks Approved HTML tags:
    a, abbr, b, big, blockquote, br, caption, center, col, colgroup, dd, del, details, div, dl, dt, em, font, h1, h2, h3, h4, h5, h6, hr, i, ins, li, ol, p, pre, readmore, small, span, spoiler, strike, strong, sub, summary, sup, table, tbody, td, tfoot, th, thead, tr, tt, u, ul, wbr
  • You may need to use entities for some characters, as follows. (Exception: Within code tags, you can put the characters literally.)
            For:     Use:
    & &amp;
    < &lt;
    > &gt;
    [ &#91;
    ] &#93;
  • Link using PerlMonks shortcuts! What shortcuts can I use for linking?
  • See Writeup Formatting Tips and other pages linked from there for more info.