Subject: | Fatal error in t/symdump.t under Perl 5.21.1 |
Perl 5.21.1 has made 'defined @array' a fatal error. This causes t/symdump.t to fail. This error is cosmetic in that the problem is in the test suite and not the module itself. I have marked the problem 'unimportant' for this reason, and because it only occurs in a development version of Perl. Presumably this will become more important in a year when 5.22 comes out.
The perl5211delta states that 'defined @array' is now fatal, and claims that it has been deprecated since 5.6.1 and has raised warnings since 5.16, though presumably there were not warnings in all cases since the test is silent under 5.20.0.
The attached patch to t/symdump.t removes the error by removing the 'defined'.
Subject: | Devel-Symdump-t-symdump.patch |
--- t/symdump.old 2013-10-30 02:23:33.000000000 -0400
+++ t/symdump.t 2014-06-24 11:02:40.000000000 -0400
@@ -147,9 +147,9 @@
if (
defined &{ "$pack\::import" } ||
defined &{ "$pack\::AUTOLOAD" } ||
- defined @{ "$pack\::ISA" } ||
- defined @{ "$pack\::EXPORT" } ||
- defined @{ "$pack\::EXPORT_OK"}
+ @{ "$pack\::ISA" } ||
+ @{ "$pack\::EXPORT" } ||
+ @{ "$pack\::EXPORT_OK"}
)
{
push @modules, $pack;