use Carp;
use Module::Pluggable::Object ();
-our $VERSION = '0.09_02';
+our $VERSION = '0.12';
=head1 NAME
Config::Any - Load configuration from different file formats, transparently
-=head1 VERSION
-
-This document describes Config::Any version 0.09_02
-
=head1 SYNOPSIS
use Config::Any;
my $cfg = Config::Any->load_files({files => \@filepaths, ... });
for (@$cfg) {
- my ($filename, $config) = each %$_;
+ my ($filename, $config) = %$_;
$class->config($config);
warn "loaded config from file: $filename";
}
}
my @results;
+ warn $@ if $@;
for my $filename ( @{ $args->{ files } } ) {
= eval { $loader->load( $filename, $loader_args{ $loader } ); };
# fatal error if we used extension matching
- croak "Error parsing file: $filename" if $@ and $use_ext_lut;
+ croak "Error parsing $filename: $@" if $@ and $use_ext_lut;
next if $@ or !@configs;
# post-process config with a filter callback