Skip Menu |

Preferred bug tracker

Please visit the preferred bug tracker to report your issue.

This queue is for tickets about the YAML CPAN distribution.

Report information
The Basics
Id: 74226
Status: resolved
Priority: 0/
Queue: YAML

People
Owner: Nobody in particular
Requestors: wyant [...] cpan.org
Cc:
AdminCc:

Bug Information
Severity: Important
Broken in: 0.78
Fixed in: 0.82



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; }
And please don’t forget the patch in ticket #73673. When I wrote the patch in #73483, I was too hasty, and only fixed one test script, when two were failing.
Now that 5.16.0 this bug affects a stable Perl too.
From: paul [...] city-fan.org
On Wed May 30 20:27:46 2012, TOBYINK wrote: Show quoted text
> Now that 5.16.0 this bug affects a stable Perl too.
The patch is included in the new release 0.82. Also included in this release is a copy of the upstream git repository it seems. Unintentional I suspect :-/
This issue has been copied to: https://github.com/ingydotnet/yaml-pm/issues/122 please take all future correspondence there. This ticket will remain open but please do not reply here. This ticket will be closed when the github issue is dealt with.
Looks like this can be closed.