Beefy Boxes and Bandwidth Generously Provided by pair Networks
The stupid question is the question not asked
 
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 meditating upon the Monastery: (None)
    As of 2024-10-15 19:25 GMT
    Sections?
    Information?
    Find Nodes?
    Leftovers?
      Voting Booth?

      No recent polls found

      Notices?
      erzuuli‥ 🛈The London Perl and Raku Workshop takes place on 26th Oct 2024. If your company depends on Perl, please consider sponsoring and/or attending.