Subject: | [PATCH] 'redefined' warnings |
There seem to be some collision between Class::DBI::mysql and Time::Piece:
--cut--
Subroutine Class::DBI::mysql::localtime redefined at
/usr/local/lib/perl5/site_perl/5.8.8/mach/Time/Piece.pm line 124.
Subroutine Class::DBI::mysql::gmtime redefined at
/usr/local/lib/perl5/site_perl/5.8.8/mach/Time/Piece.pm line 124.
Subroutine Class::DBI::mysql::localtime redefined at
/usr/local/lib/perl5/site_perl/5.8.8/mach/Time/Piece.pm line 124.
Subroutine Class::DBI::mysql::gmtime redefined at
/usr/local/lib/perl5/site_perl/5.8.8/mach/Time/Piece.pm line 124.
--cut--
The attached patch avoids this. The patch is against 1.09.
/Lars
PS: Strange... filling in this form, I find that the RT field 'Broken
in' does not contain version number '1.09'. It's been over a month since
1.09 was released, so one would think that RT had caught up by now...
Subject: | patch-Piece.pm |
--- ./Piece.pm.orig Sun Feb 26 20:49:20 2006
+++ ./Piece.pm Sun Feb 26 20:49:50 2006
@@ -121,6 +121,7 @@
for my $method (@methods) {
if (exists $_special_exports{$method}) {
no strict 'refs';
+ no warnings 'redefine';
*{$to . "::$method"} = $_special_exports{$method}->($class);
} else {
$class->SUPER::export($to, $method);