in reply to Re: Sharing Variables and Routines between modules
in thread Sharing Variables and Routines between modules

I thought about that but then I end up cross-using modules.

package My::Database;
use My::Globals;
use My::Package_A;
use My::Package_B;
------------------
package My::Globals;
use My::Database;
use My::Package_A;
use My::Package_B;
--------------------
etc.etc
Then when I want to add My::Package_C I have to go through every single module and add it to the list...
  • Comment on Re^2: Sharing Variables and Routines between modules

Replies are listed 'Best First'.
Re^3: Sharing Variables and Routines between modules
by happy.barney (Friar) on Nov 01, 2010 at 19:14 UTC
    Globals requires Package_A ?
    package My::Package_A; use My::Globals; use My::Database;
    and so on ...