X-Git-Url: http://git.shadowcat.co.uk/gitweb/gitweb.cgi?a=blobdiff_plain;f=lib%2FConfig%2FAny%2FYAML.pm;h=a12c74f4d97fbd18449cd8f9ac7a42c379263e9f;hb=a39975604eef2f215b2bf66ee5ff606aaa84fa09;hp=9eaa5f727027bca1bf0a723a851c3c057057f97b;hpb=9113afabd42fab736a475493892eccf82fc36b9a;p=p5sagit%2FConfig-Any.git diff --git a/lib/Config/Any/YAML.pm b/lib/Config/Any/YAML.pm index 9eaa5f7..a12c74f 100644 --- a/lib/Config/Any/YAML.pm +++ b/lib/Config/Any/YAML.pm @@ -41,6 +41,8 @@ Attempts to load C<$file> as a YAML file. =cut +our $NO_YAML_XS_WARNING; + sub load { my $class = shift; my $file = shift; @@ -51,8 +53,9 @@ sub load { } Carp::carp -"Using YAML::Syck or YAML to parse configs is DEPRECATED. Please install ". -"YAML::XS for proper YAML support"; + 'Use of YAML::Syck or YAML to parse config files is DEPRECATED. ' + . 'Please install YAML::XS for proper YAML support' + unless $NO_YAML_XS_WARNING; eval { require YAML::Syck; YAML::Syck->VERSION( '0.70' ) }; unless ( $@ ) { @@ -81,7 +84,7 @@ Brian Cassidy Ebricas@cpan.orgE =head1 COPYRIGHT AND LICENSE -Copyright 2006-2009 by Brian Cassidy +Copyright 2006-2011 by Brian Cassidy This library is free software; you can redistribute it and/or modify it under the same terms as Perl itself.