jeanluca has asked for the wisdom of the Perl Monks concerning the following question:
My code looks like:Subroutine xyz redefined at ../A.pm ....
In A.pm I see a subroutine xyz but not in B.pm. But B.pm uses many other packages, which can include A.pm. But still, how can any of this give me this warning ?use A ; use B ; .... do something
which, unfortunately, didn't solve it (same result). Is there an easy fix for this ?use A ; eval { use B ; # do stuff which only requires B } # do stuff which only requires A
|
|---|
| Replies are listed 'Best First'. | |
|---|---|
|
Re: subroutine xyz redefined at ...
by kennethk (Abbot) on Aug 24, 2009 at 16:06 UTC | |
|
Re: subroutine xyz redefined at ...
by ikegami (Patriarch) on Aug 24, 2009 at 16:10 UTC | |
|
Re: subroutine xyz redefined at ...
by jeanluca (Deacon) on Aug 24, 2009 at 16:50 UTC | |
by kennethk (Abbot) on Aug 24, 2009 at 17:44 UTC | |
by jeanluca (Deacon) on Aug 25, 2009 at 09:50 UTC | |
by kennethk (Abbot) on Aug 26, 2009 at 22:01 UTC | |
|
Re: subroutine xyz redefined at ...
by Anonymous Monk on Aug 25, 2009 at 00:25 UTC | |
by jeanluca (Deacon) on Aug 26, 2009 at 12:59 UTC |