X-Git-Url: http://git.shadowcat.co.uk/gitweb/gitweb.cgi?p=p5sagit%2FConfig-Any.git;a=blobdiff_plain;f=lib%2FConfig%2FAny%2FPerl.pm;h=fee9e4d86a37036fa1bb7fc77a9408b1c95c606f;hp=1dd1499e50b6defa6e025d4654f41d048ccff8d2;hb=c793253e5f2ad3ca9d60e96e07a5d87fa344ec31;hpb=83020fbd096a2523ceedbb3ea1e9b99e030f994c diff --git a/lib/Config/Any/Perl.pm b/lib/Config/Any/Perl.pm index 1dd1499..fee9e4d 100644 --- a/lib/Config/Any/Perl.pm +++ b/lib/Config/Any/Perl.pm @@ -3,6 +3,8 @@ package Config::Any::Perl; use strict; use warnings; +use base 'Config::Any::Base'; + my %cache; =head1 NAME @@ -46,8 +48,8 @@ sub load { my $file = shift; my $content; - unless( $content = $cache{ $file } ) { - $content = eval { require $file }; + unless ( $content = $cache{ $file } ) { + $content = require $file; $cache{ $file } = $content; } @@ -56,15 +58,11 @@ sub load { =head1 AUTHOR -=over 4 - -=item * Brian Cassidy Ebricas@cpan.orgE - -=back +Brian Cassidy Ebricas@cpan.orgE =head1 COPYRIGHT AND LICENSE -Copyright 2006 by Brian Cassidy +Copyright 2006-2009 by Brian Cassidy This library is free software; you can redistribute it and/or modify it under the same terms as Perl itself.