Beefy Boxes and Bandwidth Generously Provided by pair Networks
Syntactic Confectionery Delight
 
PerlMonks  

Re: Access to single object from multiple other objects

by elTriberium (Friar)
on Oct 31, 2013 at 19:55 UTC ( [id://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.

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
Domain Nodelet?
Node Status?
node history
Node Type: note [id://1060631]
help
Chatterbox?
and the web crawler heard nothing...

How do I use this?Last hourOther CB clients
Other Users?
Others pondering the Monastery: (7)
As of 2024-03-29 08:31 GMT
Sections?
Information?
Find Nodes?
Leftovers?
    Voting Booth?

    No recent polls found