An invalid Perl configuration file causes an error on eval in
Config::Any::Perl::load().
However, when running within a test harness like Test::Builder, this
error is not fatal and an undef config is returned back to Config::Any.
load() should call die in this case and then Config::Any handles it
properly.
A patch follows:
--- Perl.pm 2008-02-07 17:53:23.000000000 +0000
+++ /usr/lib/perl5/site_perl/5.8.5/Config/Any/Perl.pm 2008-02-07
17:52:47.000000000 +0000
@@ -48,6 +48,7 @@
unless ( $content = $cache{ $file } ) {
$content = eval { require $file };
+ die "eval failed: $file: $@" if $@;
$cache{ $file } = $content;
}