Subrutine xxx redefined at C:/... program line ..
Using this code:
use warnings;
use strict;
sub a{ 1 };
sub a{ 2 };
Diagnostics says:
$ perl -Mdiagnostics x
Subroutine a redefined at x line 6 (#1)
(W redefine) You redefined a subroutine. To suppress this warning, say
{
no warnings 'redefine';
eval "sub name { ... }";
}
.............
--
Marco Antonio
Rio-PM
perlmonks.org content © perlmonks.org and japhy, mda2, tamaguchi
prlmnks.org © 2006 edmund von der burg (eccles & toad)
v 0.03