Is this a bug in HTML-Parser-3.45, or did my install fail because I lack some prerequisite? I have Perl 5.6.0 and Mac OS X 10.2.5
After running
perl Makefile.PL make
on the HTML-Parser-3.45 package from CPAN, make testproduced the following output:
t/headparser-http...FAILED before any test output arrived t/headparser......../\x{FEFF}/: Can't use \x{} without 'use utf8' decl +aration at blib/lib/HTML/HeadParser.pm line 211. Compilation failed in require at t/headparser.t line 84. dubious
Here's the entire output:
PERL_DL_NONLAZY=1 /usr/bin/perl -Iblib/arch -Iblib/lib -I/System/Libra +ry/Perl/darwin -I/System/Library/Perl -e 'use Test::Harness qw(&runte +sts $verbose); $verbose=0; runtests @ARGV;' t/*.t t/api_version.......ok t/argspec-bad.......ok t/argspec...........ok t/argspec2..........ok t/attr-encoded......ok t/callback..........ok t/case-sensitive....ok t/cases.............ok t/comment...........ok t/crashme...........ok t/declaration.......ok t/default...........ok t/dtext.............ok t/entities..........ok t/entities2.........ok t/filter-methods....ok t/filter............ok t/handler-eof.......ok t/handler...........ok t/headparser-http...FAILED before any test output arrived t/headparser......../\x{FEFF}/: Can't use \x{} without 'use utf8' decl +aration at blib/lib/HTML/HeadParser.pm line 211. Compilation failed in require at t/headparser.t line 84. dubious Test returned status 255 (wstat 65280, 0xff00) DIED. FAILED tests 1-6 Failed 6/6 tests, 0.00% okay t/ignore............ok t/largetags.........ok t/linkextor-base....ok t/linkextor-rel.....ok t/magic.............ok t/marked-sect.......ok t/msie-compat.......ok t/offset............ok t/options...........ok t/parsefile.........ok t/parser............ok t/plaintext.........ok t/process...........ok t/pullparser........ok t/script............ok t/skipped-text......ok t/stack-realloc.....ok t/textarea..........ok t/tokeparser........ok t/uentities.........skipped: This perl does not support Unicode t/unbroken-text.....ok t/unicode-bom.......skipped: This perl does not support Unicode t/unicode...........skipped: This perl does not support Unicode t/xml-mode..........ok Failed Test Status Wstat Total Fail Failed List of failed ---------------------------------------------------------------------- +--------- t/headparser-ht ?? ?? % ?? t/headparser.t 255 65280 6 6 100.00% 1-6 3 tests skipped. Failed 2/45 test scripts, 95.56% okay. 6/242 subtests failed, 97.52% o +kay. make: *** [test_dynamic] Error 25

In reply to HTML::HeadParser install failure: can't \x{} without use utf8; by rwburden

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.