Beefy Boxes and Bandwidth Generously Provided by pair Networks
Do you know where your variables are?
 
PerlMonks  

Re: Access to single object from multiple other objects

by elTriberium (Friar)
on Oct 31, 2013 at 19:55 UTC ( #1060631=note: print w/ replies, xml ) Need Help??


in reply to Access to single object from multiple other objects

Thanks everyone for the suggestions!

Looks like passing it to the objects as an argument is the preffered solution. My only issue with that is that I have a relatively large object hierarchy, with something similar to the following objects:

A instantiates B and C B instantiates D D instantiates E [...]

So now if E needs access to the config module I'll have to pass it all the way down.


Comment on Re: Access to single object from multiple other objects
Download Code
Re^2: Access to single object from multiple other objects
by Anonymous Monk on Nov 01, 2013 at 03:55 UTC

Log In?
Username:
Password:

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

How do I use this? | Other CB clients
Other Users?
Others pondering the Monastery: (12)
As of 2014-07-28 14:58 GMT
Sections?
Information?
Find Nodes?
Leftovers?
    Voting Booth?

    My favorite superfluous repetitious redundant duplicative phrase is:









    Results (200 votes), past polls