Subject: | Undefined subroutine &main:: called (with older Module::Patch?) |
On some of my smokers:
...
# Failed test 'ScriptX_Util/Patcher/DumpAndExit.pm loaded ok'
# at t/00-compile.t line 45.
# got: '65280'
# expected: '0'
Use of uninitialized value $_ in subroutine dereference at /usr/perl5.18.4p/lib/site_perl/5.18.4/Module/Patch.pm line 36.
Undefined subroutine &main:: called at /home/cpansand/.cpan/build/2020100210/ScriptX_Util-0.003-0/blib/lib/ScriptX_Util/Patcher/DumpAndExit.pm line 39.
Compilation failed in require at -e line 1.
# Looks like you failed 1 test of 3.
t/00-compile.t ...........
Dubious, test returned 1 (wstat 256, 0x100)
Failed 1/3 subtests
...
This seems to happen if Module::Patch is too old (< 0.276), Statistical analysis:
****************************************************************
Regression 'mod:Module::Patch'
****************************************************************
Name Theta StdErr T-stat
[0='const'] 0.0000 0.0000 2.39
[1='eq_0.274'] -0.0000 0.0000 -2.19
[2='eq_0.275'] -0.0000 0.0000 -2.31
[3='eq_0.276'] 1.0000 0.0000 21398481054532544.00
R^2= 1.000, N= 82, K= 4
****************************************************************