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

I downloaded the newest HTML:Parser (3.13) and did the standard
perl Makefile.PL make make test make install

The make test gave me a lot of errors like this:
Ambiguous use of le => resolved to "le" => at blib/lib/HTML/Entities.p +m line 322.

and the following output:
Failed Test Status Wstat Total Fail Failed List of failed ---------------------------------------------------------------------- +--------- t/linkextor-bas 2 512 5 5 100.00% 1-5 t/linkextor-rel 2 512 4 4 100.00% 1-4 Failed 2/30 test scripts, 93.33% okay. 9/145 subtests failed, 93.79% o +kay. *** Error code 2 (bu21)

I did the make install anyway and it didn't report anything funny but when I tried to use 'HTML::Parser ()', I got:
Undefined subroutine &main::start called at /usr/local/lib/perl5/site_perl/HTML/Parser.pm line 104.


I haven't gone into the Parser.pm code to look at 104. I was wondering if these errors indicate any sort of problem to any of you. I'm pretty new to module use (I've used LWP:Simple and that works just fine).
I'm using version 5.004_04 built for IP22-irix.

Thanks,
Dogg

Replies are listed 'Best First'.
Re: Problems with HTML:Parser installation
by Fastolfe (Vicar) on Nov 23, 2000 at 01:52 UTC
    I'm wondering if there isn't anything significant in the large swaths of text you didn't post. Did any of the testing indicate that perhaps there's a dependent module that wasn't installed first?

    If you use CPAN to install your modules, it picks up on dependencies automatically, and by default will go ahead and install them for you first.

      The readme for Parser only mentions that perl version 5.004 is required. It doesn't mention any dependencies.

      All the error lines in the testing read like variations on:
      Ambiguous use of int => resolved to "int" => at blib/lib/HTML/Entities +.pm line 315.

      (just litsting different words (ne,le,ge,sub) in the int postion). The file blib/lib/HTML/Entities.pm was made automatically from the tar file, so I assume it's correct.

      Regarding CPAN, from what I've heard, it's a nice way to take care of this stuff, but I've had problems with the CPAN module all along.

      For example install HTML:Parser returns:
      Ambiguous use of and => resolved to "and" => at /usr/local/lib/perl5/s +ite_perl/HTML/Entities.pm line 311, <FIN> chunk 1. Ambiguous use of or => resolved to "or" => at /usr/local/lib/perl5/sit +e_perl/HTML/Entities.pm line 312, <FIN> chunk 1. Ambiguous use of int => resolved to "int" => at /usr/local/lib/perl5/s +ite_perl/HTML/Entities.pm line 315, <FIN> chunk 1. Ambiguous use of ne => resolved to "ne" => at /usr/local/lib/perl5/sit +e_perl/HTML/Entities.pm line 320, <FIN> chunk 1. Ambiguous use of le => resolved to "le" => at /usr/local/lib/perl5/sit +e_perl/HTML/Entities.pm line 322, <FIN> chunk 1. Ambiguous use of ge => resolved to "ge" => at /usr/local/lib/perl5/sit +e_perl/HTML/Entities.pm line 323, <FIN> chunk 1. Ambiguous use of sub => resolved to "sub" => at /usr/local/lib/perl5/s +ite_perl/HTML/Entities.pm line 324, <FIN> chunk 1. CPAN: LWP loaded ok Fetching with LWP: www.cpan.org/authors/01mailrc.txt.gz Please check, if the URLs I found in your configuration file (www.cpan +.org) are valid. The urllist can be edited. E.g. with ``o conf urllist push ftp://myurl/'' Cannot fetch authors/01mailrc.txt.gz Fetching with LWP: www.cpan.org/modules/02packages.details.txt.gz Please check, if the URLs I found in your configuration file (www.cpan +.org) are valid. The urllist can be edited. E.g. with ``o conf urllist push ftp://myurl/'' Cannot fetch modules/02packages.details.txt.gz Fetching with LWP: www.cpan.org/modules/03modlist.data.gz Please check, if the URLs I found in your configuration file (www.cpan +.org) are valid. The urllist can be edited. E.g. with ``o conf urllist push ftp://myurl/'' Cannot fetch modules/03modlist.data.gz Warning: Cannot install HTML:Parser, don't know what it is. Try the command i /HTML:Parser/ to find objects with similar identifiers.

      I've never been able to get the search to work either, even though it seems that I have the correct URL set up. So I usually do everything by hand.
        The package separator is actually double colons. Try install HTML::Parser instead. :)