I am getting test reports in CPAN for my P module.

Spent some time removing most or all of the new features I could think of -- replacing switch/when things like that -- thinking maybe I could get it working with -- maybe back to 5.8...not sure...

But last time had fails on 5.12-5.16 all platforms.

This time, it's 1 platform that is giving me problems I'm clueless on.

5.12 BSD.

Am getting:

# Failed test at t/P.t line 96. self-test failed: Can't locate object method "print" via package "IO:: +File" at lib/P.pm line 119. Use of uninitialized value $rcase in numeric eq (==) at t/P.t line 95. # Failed test 'received testcase 2' # at t/P.t line 95. Use of uninitialized value $rstr in pattern match (m//) at t/P.t line +96. # Failed test at t/P.t line 96. self-test failed: Can't locate object method "print" via package "IO:: +File" at lib/P.pm line 119. Use of uninitialized value $rcase in numeric eq (==) at t/P.t line 95. ...a bunch more...
In my code at 95+96, I have:
ok($caseno == $rcase, "received testcase $caseno"); if (length($re)) {ok($rstr =~ m{$re}, $name)}
Is something broken on the BSD 5.12 platform? I'm guessing that the test harness is calling print, but "print" in class IO::File, I thought, was a CORE function? How could it not be there?

Maybe someone from BSD land on here -- was perl badly broken in 5.12?

Test case uses 'Test::More'....

Thanks -- I'm sure others have dealt with this type of stuff before, yes? ;-)


In reply to perl 5.12 BSD portability (CPAN test result)...print by perl-diddler

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.