X-Git-Url: http://git.shadowcat.co.uk/gitweb/gitweb.cgi?p=p5sagit%2FConfig-Any.git;a=blobdiff_plain;f=lib%2FConfig%2FAny%2FGeneral.pm;h=6aceb985bf4d236b5f7a0c8f8d6ce5df5019262d;hp=bae5fff5041216ae4f6533d80d04312e23c55cf1;hb=72628dc786ef43d546023d6f17a86c3f5edeb21a;hpb=a918b0b8b7952db918dfabb8dc72bf34832d43d0 diff --git a/lib/Config/Any/General.pm b/lib/Config/Any/General.pm index bae5fff..6aceb98 100644 --- a/lib/Config/Any/General.pm +++ b/lib/Config/Any/General.pm @@ -68,6 +68,17 @@ sub _test_perl { return defined $is_perl_src; } +=head2 is_supported( ) + +Returns true if L is available. + +=cut + +sub is_supported { + eval { require Config::General; }; + return $@ ? 0 : 1; +} + =head1 AUTHOR Brian Cassidy Ebricas@cpan.orgE