require YAML::Syck 0.70 for multi-document loading
[p5sagit/Config-Any.git] / lib / Config / Any / XML.pm
index a5fc881..c9b979f 100644 (file)
@@ -73,19 +73,26 @@ sub _coerce {
     $out;
 }
 
-=head1 AUTHOR
+=head2 is_supported( )
 
-=over 4 
+Returns true if L<XML::Simple> is available.
+
+=cut
 
-=item * Brian Cassidy E<lt>bricas@cpan.orgE<gt>
+sub is_supported {
+    eval { require XML::Simple; };
+    return $@ ? 0 : 1;
+}
 
-=item * Joel Bernstein E<lt>rataxis@cpan.orgE<gt>
+=head1 AUTHORS
 
-=back
+Brian Cassidy E<lt>bricas@cpan.orgE<gt>
+
+Joel Bernstein E<lt>rataxis@cpan.orgE<gt>
 
 =head1 COPYRIGHT AND LICENSE
 
-Copyright 2006 by Brian Cassidy
+Copyright 2007 by Brian Cassidy
 
 This library is free software; you can redistribute it and/or modify
 it under the same terms as Perl itself.