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" );
In reply to Re^3: Application-wide configuration
by skx
in thread Application-wide configuration
by akho
| For: | Use: | ||
| & | & | ||
| < | < | ||
| > | > | ||
| [ | [ | ||
| ] | ] |