Subject: | defined %foo and defined @foo an error |
Starting from perl 5.22 defined is no longer permitted on aggregates, ie. hashes and arrays.
This has been warning as deprecated since at least 5.12, since it's behaviour is non-obvious.
The attached patch fixes the problem in Class-Plugin-Util
Tony
Subject: | class-plugin-util-defined.diff |
Only in Class-Plugin-Util-0.009-X7KKQR/: blib
Only in Class-Plugin-Util-0.009-X7KKQR/: _build
Only in Class-Plugin-Util-0.009-X7KKQR/: Build
diff -ru Class-Plugin-Util-0.009-X7KKQR/lib/Class/Plugin/Util.pm Class-Plugin-Util-0.009-nlMzq_/lib/Class/Plugin/Util.pm
--- Class-Plugin-Util-0.009-X7KKQR/lib/Class/Plugin/Util.pm 2007-10-03 02:20:12.000000000 +1000
+++ Class-Plugin-Util-0.009-nlMzq_/lib/Class/Plugin/Util.pm 2015-03-30 16:31:42.000000000 +1100
@@ -261,7 +261,7 @@
# It's already loaded if $VERSION or @ISA is defined in the class.
return 1 if defined ${"${class}::VERSION"};
- return 1 if defined @{"${class}::ISA"};
+ return 1 if @{"${class}::ISA"};
# It's also loaded if we find a function in that class.
METHOD: