Revision history for Config-Any
+0.12 XXX 2008
+ - ensure Perl loader dies on a failed require() (RT #32995)
+
0.11 Mon 28 Jan 2008
- fix subsection parsing for existing keys in INI files (RT #32726)
- use from_json() if JSON version 2.x is available
use Carp;
use Module::Pluggable::Object ();
-our $VERSION = '0.11';
+our $VERSION = '0.12';
=head1 NAME
my $content;
unless ( $content = $cache{ $file } ) {
- $content = eval { require $file };
+ $content = require $file;
$cache{ $file } = $content;
}
--- /dev/null
+use strict;
+use warnings;
+
+use Test::More tests => 2;
+
+use Config::Any::Perl;
+
+{
+ my $file = 't/conf/conf_invalid.pl';
+ my $config = eval { Config::Any::Perl->load( $file ) };
+
+ ok( !$config, 'config load failed' );
+ ok( $@, "error thrown ($@)" );
+}
--- /dev/null
+this is not valid perl.