Cyclical Dependencies 
Author Message
 Cyclical Dependencies

How do you avoid "Subroutine XXX redefined" type of messages?

Here's a sample to demonstrate the cyclical dependencies in Perl

---- Beginning of File:
package A;
use B;
sub Foo
  print "Foo\n";


---- End of File:

---- Beginning of File:
package B;
use A;
sub Bar
  print "Bar\n";


---- End of File:

if you do "perl5 -cw", you get the warning of "Subroutine Bar is redefined"
since A includes B (and vice versa).

What's the best way to resolve this issue?


Brian Callaghan                 Computer Science, University of Waterloo

http://www.*-*-*.com/ ~btcallag

Tue, 17 Apr 2001 03:00:00 GMT  
 [ 1 post ] 

 Relevant Pages 

1. Help with this error message: Insecure dependency in open while running with -T switch

2. REQUEST: perl dependency-checking program

3. AIX Implementation Dependency

4. Insecure dependency in eval (require)

5. Wrote new module, need help with system dependencies.

6. Insecure dependency?

7. finding dependencies in a HTML file

8. A simple dependency excercise

9. Insecure Dependency

10. Q: Making secure dependencies in setuid programs?

11. Indicating dependencies in multi-file xs compiles

12. Insecure dependency in `` while running setuid


Powered by phpBB® Forum Software