Subject: | spurious warning |
I am seeing the following warning:
Subroutine db_Main redefined at /usr/local/share/perl/5.6.1/Ima/DBI.pm line 282 (#1)
(W redefine) You redefined a subroutine. To suppress this warning, say
{
no warnings;
eval "sub name { ... }";
}
I suggest the following additional line at line 282:
no strict 'refs';
+ no warnings 'redefine';
*{ $class . "::db_$db_name" } =
$class->_mk_db_closure($data_source, $user, $password, $attr);
Cheers, Dave