Subject: | defined(@array) deprecated in Perl 5.15.7. |
The 'defined(@array)' construction was actually deprecated a while back,
but there was no warning on package variables until Perl 5.15.7. The
attached patch removes the 'defined', and bumps the version to 0.0008_01.
Thanks for a very helpful module.
Tom Wyant
Subject: | Devel-Hide.patch |
--- lib/Devel/Hide.old 2007-11-15 09:45:02.000000000 -0500
+++ lib/Devel/Hide.pm 2012-01-21 19:15:53.000000000 -0500
@@ -5,7 +5,7 @@
use strict;
use warnings;
-our $VERSION = '0.0008';
+our $VERSION = '0.0008_01';
# blech! package variables
use vars qw( @HIDDEN $VERBOSE );
@@ -101,7 +101,7 @@
BEGIN {
# unless @HIDDEN was user-defined elsewhere, set default
- if ( !defined @HIDDEN && $ENV{DEVEL_HIDE_PM} ) {
+ if ( !@HIDDEN && $ENV{DEVEL_HIDE_PM} ) {
_push_hidden( split q{ }, $ENV{DEVEL_HIDE_PM} );
# NOTE. "split ' ', $s" is special. Read "perldoc -f split".