Subject: | Compile test fails with Test::Compile 2.0.0 or later |
From: | github [...] trace.city-fan.org |
Test::Compile 2.0.0 has introduced a backward-incompatible change in which all_pm_files_ok needs to be specifically imported before it can be used. This method is now deprecated and using the OO interface is preferred. However, for the time being, it is sufficient to change:
eval "use Test::Compile";
to
eval "use Test::Compile 2 qw( all_pm_files_ok )" || eval "use Test::Compile";
That works with all versions of Test::Compile that I've tried (0.08 through to 2.0.0).