Beefy Boxes and Bandwidth Generously Provided by pair Networks
Just another Perl shrine
 
PerlMonks  

comment on

( [id://3333]=superdoc: print w/replies, xml ) Need Help??
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":



  • Are you posting in the right place? Check out Where do I post X? to know for sure.
  • Posts may use any of the Perl Monks Approved HTML tags. Currently these include the following:
    <code> <a> <b> <big> <blockquote> <br /> <dd> <dl> <dt> <em> <font> <h1> <h2> <h3> <h4> <h5> <h6> <hr /> <i> <li> <nbsp> <ol> <p> <small> <strike> <strong> <sub> <sup> <table> <td> <th> <tr> <tt> <u> <ul>
  • Snippets of code should be wrapped in <code> tags not <pre> tags. In fact, <pre> tags should generally be avoided. If they must be used, extreme care should be taken to ensure that their contents do not have long lines (<70 chars), in order to prevent horizontal scrolling (and possible janitor intervention).
  • Want more info? How to link or How to display code and escape characters are good places to start.
Log In?
Username:
Password:

What's my password?
Create A New User
Domain Nodelet?
Chatterbox?
and the web crawler heard nothing...

How do I use this?Last hourOther CB clients
Other Users?
Others drinking their drinks and smoking their pipes about the Monastery: (6)
As of 2024-04-19 23:02 GMT
Sections?
Information?
Find Nodes?
Leftovers?
    Voting Booth?

    No recent polls found