Subject: | Example for Test::Prereq::Build does not work |
Using the following code from the example:
use Test;
eval "use Test::Prereq::Build";
plan skip_all => "Test::Prereq::Build required to test dependencies" if $@;
prereq_ok();
Removing "use Test" gives a syntax error:
t\00-Prereqs-Build....Unquoted string "plan" may clash with future reserved word
at t\00-Prereqs-Build.t line 3.
syntax error at t\00-Prereqs-Build.t line 3, near "plan skip_all"
Execution of t\00-Prereqs-Build.t aborted due to compilation errors.
t\00-Prereqs-Build....dubious
Test returned status 255 (wstat 65280, 0xff00)
"perl Build test" outputs:
t\00-Prereqs-Build....You tried to run a test without a plan! Gotta have a plan. at C:/Perl/site/lib/Test/Prereq.pm line 263
FAILED before any test output arrived