Subject: | Warnings from bleadperl/UNIVERSAL.pm |
The UNIVERSAL.pm that comes with current bleadperl issues warnings:
PERL_DL_NONLAZY=1
/home/src/perl/repoperls/installed-perls/perl/v5.11.2-191-gb228cf7/bin/perl
"-MExtUtils::Command::MM" "-e" "test_harness(0, 'blib/lib',
'blib/arch')" t/*.t
UNIVERSAL->import is deprecated and will be removed in a future perl at
/home/sand/.cpan/build/Time-Piece-1.15-QG2nzm/blib/lib/Time/Seconds.pm
line 6
UNIVERSAL->import is deprecated and will be removed in a future perl at
/home/sand/.cpan/build/Time-Piece-1.15-QG2nzm/blib/lib/Time/Piece.pm line 12
t/01base.t ...... ok
[...]
Easy to fix with these patches:
--- Seconds.pm~ 2009-12-20 10:04:42.000000000 +0100
+++ Seconds.pm 2009-12-20 10:05:12.000000000 +0100
@@ -3,7 +3,6 @@
package Time::Seconds;
use strict;
use vars qw/@EXPORT @EXPORT_OK @ISA/;
-use UNIVERSAL qw(isa);
@ISA = 'Exporter';
--- Piece.pm~ 2009-12-20 10:04:52.000000000 +0100
+++ Piece.pm 2009-12-20 10:05:04.000000000 +0100
@@ -9,7 +9,6 @@
use Time::Seconds;
use Carp;
use Time::Local;
-use UNIVERSAL qw(isa);
our @ISA = qw(Exporter DynaLoader);
HTH && Regards,