- or download this
@list = C('my.path.to.a.list');
$ref = C('my.path.to.whatever');
$array_el = C('my.path.to.array.element.3');
- or download this
$host = $c->get_dbconfig->{servers}[2]{host};
...
$host = C('dbconfig.servers.2.host');
- or download this
global.conf:
username : admin
password : 12345
- or download this
$Config = {
global => {
...
password => '12345',
}
}
- or download this
confdir:
...
--headlines.conf
--data_types.conf
syndication.conf
- or download this
confdir:
db.conf
local.conf
- or download this
connections:
...
table: abc
password: 123
- or download this
db:
...
default_settings:
password: 456
- or download this
db:
connections:
...
password: 456
- or download this
file: MyApp/Config.pm:
----------------------
...
use MyApp::Config;
@dbs = C('db.server_pool");
- or download this
package MyApp::Config;
...
print C('my.config.value');
- or download this
package Burro::Config;
...
1