Beefy Boxes and Bandwidth Generously Provided by pair Networks
Pathologically Eclectic Rubbish Lister
 
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.

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 surveying the Monastery: (6)
As of 2016-08-29 02:38 GMT
Sections?
Information?
Find Nodes?
Leftovers?
    Voting Booth?
    The best thing I ever won in a lottery was:















    Results (398 votes). Check out past polls.