The filenames provided to Config::Any are meant to be file paths.
If they are relative paths, they should be used directly, not searched
for in @INC. Converting them to absolute paths will avoid that search,
and will allow it to work as expected when . is not in @INC.
use warnings;
use base 'Config::Any::Base';
+use File::Spec;
=head1 NAME
my( $exception, $content );
{
local $@;
- $content = do $file;
+ $content = do File::Spec->rel2abs($file);
$exception = $@;
}
die $exception if $exception;