in reply to Nested Modules in perl
I believe that you are asking the question "If I have packages A and B, and A calls stuff from B (say, B::x()) and B calls stuff from A (say A::y()), how can I break up the circular dependency?"
If this is a correct restatement of your question, create module C containing C::x() and C::y(), and have A and B require C, calling C::x() and C::y() instead.
Often, when I see this crop up in my code, I have tried to include something in a module that does not belong that should be factored out into a separate module.
--MidLifeXis
|
|---|