Skip Menu |

This queue is for tickets about the Devel-Hide CPAN distribution.

Report information
The Basics
Id: 74225
Status: resolved
Priority: 0/
Queue: Devel-Hide

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

Bug Information
Severity: (no value)
Broken in: 0.0008
Fixed in: 0.0009



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".
Fixed in 0.0009. Thanks for the report and patch.