Skip Menu |

This queue is for tickets about the IPC-Run CPAN distribution.

Report information
The Basics
Id: 51509
Status: resolved
Priority: 0/
Queue: IPC-Run

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

Bug Information
Severity: (no value)
Broken in: 0.84
Fixed in: (no value)



Subject: UNIVERSAL->import is deprecated
Running IPC::Run under perl 5.11.1 gives the following warning: $ /opt/perl-5.11.1/bin/perl5.11.1 -w -MIPC::Run -e1 UNIVERSAL->import is deprecated and will be removed in a future perl at (eval 1) line 3 Probably (unchecked) just the line use UNIVERSAL qw( isa ); from IPC/Run/Debug.pm needs to be removed. Regards, Slaven
This is a warning being emitted by p5p as of perl 5.11 to get people to stop doing use UNIVERSAL; This thread explains why it was done. http://www.nntp.perl.org/group/perl.perl5.porters/2009/01/msg1437 70.html This patch should correct the problem and as I understand it is 100% backwards compatible since it wasn't supposed to have been done to begin with. I have run the test suite under 5.12.0-RC0 and this corrects the problem. diff --git a/lib/IPC/Run.pm b/lib/IPC/Run.pm index 1cb12d0..2f9dd50 100644 --- a/lib/IPC/Run.pm +++ b/lib/IPC/Run.pm @@ -1053,7 +1053,6 @@ use File::Spec (); use IO::Handle; require IPC::Run::IO; require IPC::Run::Timer; -use UNIVERSAL (); use constant Win32_MODE => $^O =~ /os2|Win32/i; diff --git a/lib/IPC/Run/Debug.pm b/lib/IPC/Run/Debug.pm index d459f36..71820f9 100644 --- a/lib/IPC/Run/Debug.pm +++ b/lib/IPC/Run/Debug.pm @@ -118,7 +118,6 @@ sub _debugging_not_optimized() { 0 } STUBS use POSIX; -use UNIVERSAL qw( isa ); sub _map_fds { my $map = ''; diff --git a/lib/IPC/Run/IO.pm b/lib/IPC/Run/IO.pm index 26e5ec8..1c658d9 100644 --- a/lib/IPC/Run/IO.pm +++ b/lib/IPC/Run/IO.pm @@ -76,7 +76,6 @@ use strict; use Carp; use Fcntl; use Symbol; -use UNIVERSAL (); use IPC::Run::Debug; use IPC::Run qw( Win32_MODE );
fix will be in 0.85