Beefy Boxes and Bandwidth Generously Provided by pair Networks
No such thing as a small change
 
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 scrutinizing the Monastery: (4)
As of 2014-09-23 04:40 GMT
Sections?
Information?
Find Nodes?
Leftovers?
    Voting Booth?

    How do you remember the number of days in each month?











    Results (210 votes), past polls