Syntactic Confectionery Delight | |
PerlMonks |
Recursive use causes subroutine redefinitionby prowler (Friar) |
on Sep 08, 2004 at 07:33 UTC ( [id://389286]=perlquestion: print w/replies, xml ) | Need Help?? |
prowler has asked for the wisdom of the Perl Monks concerning the following question: I have some modules that use each other and am getting subroutine redefined warnings when compilation is done (using perl -c) on one of the modules. Some sample code that does what I mean is: Foo.pm:Bar.pm
This is mainly irritating as it adds to the list of errors and warnings that appear in the Problems tab of Eclipse when editing. I know that I can disable warning check for those problems (which I don't want to do as it may hide a real problem), or I can remove each module's use of the other and just ensure that the scripts that call these modules use both of them, but it seems to me that this sort of design should be valid. Does anyone have any ideas of how to cross use modules without having subroutine redefinition issues? Thanks, Prowler
Back to
Seekers of Perl Wisdom
|
|