Beefy Boxes and Bandwidth Generously Provided by pair Networks
The stupid question is the question not asked
 
PerlMonks  

Re^3: Application-wide configuration

by skx (Parson)
on Jul 27, 2007 at 22:05 UTC ( [id://629208]=note: print w/replies, xml ) Need Help??


in reply to Re^2: Application-wide configuration
in thread Application-wide configuration

In the code above you need the get method because the singleton returns an instance of itself, not of the configuration object.

So usage becomes:

my $config = Singleton::Config->instance(); my $random = $config->get( "block", "setting" );
Steve
--

Log In?
Username:
Password:

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

How do I use this?Last hourOther CB clients
Other Users?
Others lurking in the Monastery: (4)
As of 2024-03-28 18:20 GMT
Sections?
Information?
Find Nodes?
Leftovers?
    Voting Booth?

    No recent polls found