On Wed Apr 11 17:04:26 2012, damian@conway.org wrote:
Show quoted text> Thanks for the report, Andreas.
>
> I cannot replicate the fail under the latest version
> of Contextual::Return (just uploaded to CPAN)
> with perl 5.15.9.
>
> If the newly uploaded C::R doesn't fix it, I will be a
> little stumped as to how to find the problem.
I can reproduce the failure with perl 5.10.1, Contextual::Return 0.004003 and Module::Build
0.3603.
It fails with ./Build test, but not with make test, like this:
t/00.load.t ...................... 1/1
# Failed test 'use IO::Prompter;'
# at t/00.load.t line 7.
# Tried to use 'IO::Prompter'.
# Error: Bareword "RETOBJ" not allowed while "strict subs" in use at
/Users/sprout/.cpan/build/IO-Prompter-0.002000-OT3Fqi/blib/lib/IO/Prompter.pm line
235.
# BEGIN not safe after errors--compilation aborted at /Users/sprout/.cpan/build/IO-
Prompter-0.002000-OT3Fqi/blib/lib/IO/Prompter.pm line 268.
# Compilation failed in require at (eval 4) line 2.
# BEGIN failed--compilation aborted at (eval 4) line 2.
Use of uninitialized value $IO::Prompter::VERSION in concatenation (.) or string at t/00.load.t
line 10.
I haven’t looked into it further. I suppose you could simply delete Build.PL. (I’ve never been
particularly interested in tracking down Module::Build bugs in those cases where
ExtUtils::MakeMaker just works.)