X-Git-Url: http://git.shadowcat.co.uk/gitweb/gitweb.cgi?a=blobdiff_plain;f=lib%2FConfig%2FAny%2FPerl.pm;h=fee9e4d86a37036fa1bb7fc77a9408b1c95c606f;hb=bb941906c239836c60ecce6d451cd896898f1efd;hp=6a2e3301013a749b6848ee5c1196a1443d4fb7e0;hpb=72628dc786ef43d546023d6f17a86c3f5edeb21a;p=p5sagit%2FConfig-Any.git diff --git a/lib/Config/Any/Perl.pm b/lib/Config/Any/Perl.pm index 6a2e330..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 @@ -47,30 +49,20 @@ sub load { my $content; unless ( $content = $cache{ $file } ) { - $content = eval { require $file }; + $content = require $file; $cache{ $file } = $content; } return $content; } -=head2 is_supported( ) - -Returns true. - -=cut - -sub is_supported { - return 1; -} - =head1 AUTHOR Brian Cassidy Ebricas@cpan.orgE =head1 COPYRIGHT AND LICENSE -Copyright 2007 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.