Beefy Boxes and Bandwidth Generously Provided by pair Networks
P is for Practical
 
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
Replies are listed 'Best First'.
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 rifling through the Monastery: (9)
As of 2015-09-02 19:59 GMT
Sections?
Information?
Find Nodes?
Leftovers?
    Voting Booth?

    My preferred temperature scale is:










    Results (88 votes), past polls