Beefy Boxes and Bandwidth Generously Provided by pair Networks
Welcome to the Monastery
 
PerlMonks  

Re^5: loading modules using 'use'

by wfsp (Abbot)
on Jun 30, 2010 at 13:55 UTC ( [id://847339]=note: print w/replies, xml ) Need Help??


in reply to Re^4: loading modules using 'use'
in thread loading modules using 'use'

...(script abc.pl uses A.pm and B.pm, while A.pm and B.pm have a circular inheritance among them)...
That's "circular" as in "dog trying to catch its tail"? :-)

In my experience if your faced with this it is often best to have another look at the algorithm. Identify what it is that A.pm needs from B.pm and what B.pm needs that is in A.pm. Put all that in C.pm. A.pm and B.pm then both "use" C.pm.

The dog still hasn't caught its tail but it has had a chance to see the rabbit. :-)

Log In?
Username:
Password:

What's my password?
Create A New User
Domain Nodelet?
Node Status?
node history
Node Type: note [id://847339]
help
Chatterbox?
and the web crawler heard nothing...

How do I use this?Last hourOther CB clients
Other Users?
Others rifling through the Monastery: (3)
As of 2024-04-19 21:25 GMT
Sections?
Information?
Find Nodes?
Leftovers?
    Voting Booth?

    No recent polls found