in reply to Re^10: Undiagnosable Problem
in thread Undiagnosable Problem

If Plx needs functions from PlxHml, and PlxHml needs functions from Plx, how exactly do I implement this? Thanks.

Replies are listed 'Best First'.
Re^12: Undiagnosable Problem
by Corion (Patriarch) on Jan 15, 2017 at 20:29 UTC

    That's hard to say without actually seeing your code.

    You will have to identify the functions that are used from both places and move these into a third file which is loaded by both of the other files.

    I haven't encountered problems when doing that, but maybe you have two functions that invoke each other:

    sub foo { if( $_[0] ) { bar( $_[0] -1 ) }; }; sub bar { if( $_[0] ) { foo( $_[0] -1 ) }; };

    These functions cannot be easily split in two, but depending on their functionality, maybe there is a way to rewrite them so that the common functionality can be removed.

Re^12: Undiagnosable Problem
by soonix (Chancellor) on Jan 15, 2017 at 20:17 UTC
    PMFJI, but this sounds like your "dependency tree" is more like a "dependency mesh" and needs untangling…

    after reading Corion's post, I want to ask: If you draw a dependency graph "who calls whom", did you perhaps try to divide them not into branches or layers, but grouping them otherwise?