Subject: | [patch] defined(@array) is deprecated in YAML::Any under Perl 5.15.7. |
A while back 'defined( @array )' was deprecated, but the deprecation
warning was only emitted for lexical variables. In perl 5.15.7 this
warning was extended to package variables.
This causes YAML::Any to complain when it is loaded:
$ perl -Mblib -MYAML::Any -e ''
defined(@array) is deprecated at
/Users/tom/Code/perl/CPAN-Access-AdHoc/foo/YAML-0.78/blib/lib/YAML/Any.pm line
98.
(Maybe you should just omit the defined()?)
The attached patch file silences the complaint.
Subject: | YAML-Any.patch |
--- lib/YAML/Any.old 2012-01-02 02:45:50.000000000 -0500
+++ lib/YAML/Any.pm 2012-01-21 21:43:09.000000000 -0500
@@ -95,7 +95,7 @@
sub order {
return @YAML::Any::_TEST_ORDER
- if defined @YAML::Any::_TEST_ORDER;
+ if @YAML::Any::_TEST_ORDER;
return @implementations;
}