Help! I cannot get Contextual::Return to make.

Perl 5.8.0

#!uname -a
SunOS cofjora01d 5.9 Generic_117171-07 sun4us sparc FJSV,GPUZC-M

Any ideas?

# perl Makefile.PL Checking if your kit is complete... Looks good Writing Makefile for Contextual::Return # make cp lib/Contextual/Return.pm blib/lib/Contextual/Return.pm cp lib/Contextual/Return/Failure.pm blib/lib/Contextual/Return/Failure +.pm Manifying blib/man3/Contextual::Return.3 Manifying blib/man3/Contextual::Return::Failure.3 # make test PERL_DL_NONLAZY=1 /home/utils/perl/bin/perl "-MExtUtils::Command::MM" +"-e" "test_harness(0, 'blib/lib', 'blib/arch')" t/*.t t/00.load...........ok 1/1# Testing Contextual::Return v0.1.0 + t/00.load...........ok + t/args..............syntax error at t/args.t line 7, near "NUM " syntax error at t/args.t line 10, near "SCALARREF " Can't use global @_ in "my" at t/args.t line 10, near "= $_" syntax error at t/args.t line 10, near "$var }" Execution of t/args.t aborted due to compilation errors. t/args..............dubious + Test returned status 2 (wstat 512, 0x200) t/context_tests.....ok + t/fail..............Type of arg 1 to Contextual::Return::Failure::_FAI +L must be block or sub {} (not single ref constructor) at t/fail.t li +ne 17, near "}" Execution of t/fail.t aborted due to compilation errors. # Looks like your test died before it could output anything. t/fail..............dubious + Test returned status 255 (wstat 65280, 0xff00) t/fail_with.........ok + t/failures..........syntax error at t/failures.t line 11, near "; +}" syntax error at t/failures.t line 13, near "}" Execution of t/failures.t aborted due to compilation errors. # Looks like your test died before it could output anything. t/failures..........dubious + Test returned status 255 (wstat 65280, 0xff00) t/fixed.............syntax error at t/fixed.t line 7, near "NUM +" syntax error at t/fixed.t line 10, near "SCALARREF " Execution of t/fixed.t aborted due to compilation errors. t/fixed.............dubious + Test returned status 2 (wstat 512, 0x200) t/interp............Bareword found where operator expected at t/interp +.t line 11, near "SCALARREF" (Missing semicolon on previous line?) syntax error at t/interp.t line 9, near "LIST " syntax error at t/interp.t line 13, near ")" Execution of t/interp.t aborted due to compilation errors. # Looks like your test died before it could output anything. t/interp............dubious + Test returned status 255 (wstat 65280, 0xff00) t/lazy..............syntax error at t/lazy.t line 4, near "; 'foo'" syntax error at t/lazy.t line 5, near "}" Execution of t/lazy.t aborted due to compilation errors. t/lazy..............dubious + Test returned status 2 (wstat 512, 0x200) t/lvalue............ok + t/nonvoid...........syntax error at t/nonvoid.t line 8, near "VOID +" syntax error at t/nonvoid.t line 10, near "}" Execution of t/nonvoid.t aborted due to compilation errors. # Looks like your test died before it could output anything. t/nonvoid...........dubious + Test returned status 255 (wstat 65280, 0xff00) t/object............ok + t/pod-coverage......skipped all skipped: Test::Pod::Coverage 1.04 required for testing POD + coverage t/pod...............skipped all skipped: Test::Pod 1.14 required for testing POD t/scalar-to-list....Type of arg 1 to main::SCALAR must be block or sub + {} (not single ref constructor) at t/scalar-to-list.t line 7, near " +)" syntax error at t/scalar-to-list.t line 33, near "STR " syntax error at t/scalar-to-list.t line 35, near ")" Execution of t/scalar-to-list.t aborted due to compilation errors. # Looks like your test died before it could output anything. t/scalar-to-list....dubious + Test returned status 255 (wstat 65280, 0xff00) t/SCALAR............syntax error at t/SCALAR.t line 7, near "VALUE +" syntax error at t/SCALAR.t line 8, near "}" Execution of t/SCALAR.t aborted due to compilation errors. # Looks like your test died before it could output anything. t/SCALAR............dubious + Test returned status 255 (wstat 65280, 0xff00) t/simple............syntax error at t/simple.t line 11, near "NUM + " syntax error at t/simple.t line 14, near "SCALARREF " Execution of t/simple.t aborted due to compilation errors. t/simple............dubious + Test returned status 2 (wstat 512, 0x200) Failed Test Stat Wstat Total Fail Failed List of Failed ---------------------------------------------------------------------- +--------- t/SCALAR.t 255 65280 ?? ?? % ?? t/args.t 2 512 ?? ?? % ?? t/fail.t 255 65280 ?? ?? % ?? t/failures.t 255 65280 ?? ?? % ?? t/fixed.t 2 512 ?? ?? % ?? t/interp.t 255 65280 ?? ?? % ?? t/lazy.t 2 512 ?? ?? % ?? t/nonvoid.t 255 65280 ?? ?? % ?? t/scalar-to-list.t 255 65280 ?? ?? % ?? t/simple.t 2 512 ?? ?? % ?? 2 tests skipped. Failed 10/17 test scripts, 41.18% okay. 0/53 subtests failed, 100.00% +okay. *** Error code 2 make: Fatal error: Command failed for target `test_dynamic'
edit : added readmore tags

In reply to problems making Contextual::Return by mifflin

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.