in reply to Re: Package problem with defining subroutines
in thread Package problem with defining subroutines

I know, but how I can prevent it by design ?
For example you have DB.pm which all modules uses it .
Then a User.pm and UserRating.pm , that using each other for retrieving info
Reading posts from #1 reply (tnx)
  • Comment on Re^2: Package problem with defining subroutines

Replies are listed 'Best First'.
Re^3: Package problem with defining subroutines
by Anonymous Monk on Feb 05, 2013 at 16:01 UTC

    Refactor, break the circle

    sub tst1 { mutual_util(); ... } sub tst2 { mutual_util(); ... }

    Take whatever tst1 does that calls tst2, take whatever test2 does that calls tst1 , make it a new function, and instead of calling each other, call this third function