X-Git-Url: http://git.shadowcat.co.uk/gitweb/gitweb.cgi?a=blobdiff_plain;f=lib%2FConfig%2FAny%2FGeneral.pm;h=0b39af2f58c79960f86bcec3895fdf06865b6d7e;hb=92a04e78451078b33f75e7c44d247b024c27b4f7;hp=975bff674a471317128484faed56ec94c2d332a9;hpb=e23825ecd2eaaeba8d95b59317a5b78f3c4924bf;p=p5sagit%2FConfig-Any.git diff --git a/lib/Config/Any/General.pm b/lib/Config/Any/General.pm index 975bff6..0b39af2 100644 --- a/lib/Config/Any/General.pm +++ b/lib/Config/Any/General.pm @@ -43,14 +43,14 @@ sub load { my $args = shift || {}; # work around bug (?) in Config::General -# return if $class->_test_perl($file); + # return if $class->_test_perl($file); - $args->{-ConfigFile} = $file; + $args->{ -ConfigFile } = $file; require Config::General; my $configfile = Config::General->new( %$args ); my $config = { $configfile->getall }; - + return $config; } @@ -61,10 +61,10 @@ sub load { # developer. sub _test_perl { - my ($class, $file) = @_; + my ( $class, $file ) = @_; my $is_perl_src; eval { $is_perl_src = do "$file"; }; - delete $INC{$file}; # so we don't screw stuff later on + delete $INC{ $file }; # so we don't screw stuff later on return defined $is_perl_src; }