use warnings;
use base 'Config::Any::Base';
+use File::Spec;
=head1 NAME
sub load {
my $class = shift;
my $file = shift;
- my $content;
- my $exception;
+
+ my( $exception, $content );
{
local $@;
- $content = do $file;
+ $content = do File::Spec->rel2abs($file);
$exception = $@;
}
die $exception if $exception;
=head1 COPYRIGHT AND LICENSE
-Copyright 2006-2009 by Brian Cassidy
+Copyright 2006-2016 by Brian Cassidy
This library is free software; you can redistribute it and/or modify
it under the same terms as Perl itself.