in reply to Trying to break cyclical dependencies in Perl modules

If Aa requires Bb and Bb requires Aa, then both must always be loaded together, so there is no reason to use separate files for both. So: just put them in a common source file. That way you're transferring the execution time of code from the other module, that each module wants to run at their own compile time (as JavaFan pointed out, and which is impossible), to straightforward sequential execution. Problem fixed.
  • Comment on Re: Trying to break cyclical dependencies in Perl modules

Replies are listed 'Best First'.
Re^2: Trying to break cyclical dependencies in Perl modules
by faceless (Novice) on Sep 16, 2010 at 07:31 UTC
    It seems that merging the two source files was the solution. Thank you very much for your help, and thanks for the others too for the answers :)