Beefy Boxes and Bandwidth Generously Provided by pair Networks
good chemistry is complicated,
and a little bit messy -LW
 
PerlMonks  

Re^2: OO Configuration Values (version 2)

by Anonymous Monk
on Oct 28, 2013 at 09:47 UTC ( [id://1059956]=note: print w/replies, xml ) Need Help??


in reply to Re: OO Configuration Values (version 2)
in thread OO Configuration Values (version 2)

your $config_hash is populated once at CT and afterwards this reference is used all over the place.

sub new { return $config_hash; }

hands down this very reference to any new() instance so when you

$object->config->base_directory("/home/otheruser/");,

this one-and-only hash is altered and seen altered by each and every instance holding a ref to it

Log In?
Username:
Password:

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

How do I use this?Last hourOther CB clients
Other Users?
Others avoiding work at the Monastery: (2)
As of 2024-04-20 01:27 GMT
Sections?
Information?
Find Nodes?
Leftovers?
    Voting Booth?

    No recent polls found