http://qs321.pair.com?node_id=597426


in reply to Re: problems making Contextual::Return
in thread problems making Contextual::Return

I get the same problems with Build...
# make clean rm -rf Contextual-Return-* ./blib Makefile.aperl blib/arch/auto/Contex +tual/Return/extralibs.all perlmain.c tmon.out mon.out so_locations pm +_to_blib *.o *.a perl.exe perl perl Return.bso Return.def libReturn. +def Return.exp Return.x core core.*perl.*.? *perl.core mv Makefile Makefile.old > /dev/null 2>&1 # perl Build.PL Checking whether your kit is complete... Looks good Deleting Build Removed previous script 'Build' Creating new 'Build' script for 'Contextual-Return' version 'v0.1.0' # Build lib/Contextual/Return.pm -> blib/lib/Contextual/Return.pm lib/Contextual/Return/Failure.pm -> blib/lib/Contextual/Return/Failure +.pm Manifying blib/lib/Contextual/Return.pm -> blib/libdoc/Contextual::Ret +urn.3 Manifying blib/lib/Contextual/Return/Failure.pm -> blib/libdoc/Context +ual::Return::Failure.3 erickn@cofjora01d:/home/erickn/tmp/Contextual-Return-v0.1.0> Build tes +t t/00.load...........ok 1/1# Testing Contextual::Return v0.1.0 + t/00.load...........ok + 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/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/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.
edit: added readmore tags