Help for this page

Select Code to Download


  1. or download this
       OO style
       -------------------------------------------------------
    ...
       my $config    = Config::Loader->new('/path/to/config');
       @hosts        = $config->('db.hosts.session');
       -------------------------------------------------------
    
  2. or download this
    
       Functional style (auto generates your own config class)
    ...
    
       @hosts        = C('db.hosts.sesssion');
       -------------------------------------------------------
    
  3. or download this
       OO style
       -------------------------------------------------------
    ...
    
       @cloned_hosts = $config->clone('db.hosts.session');  # deep clones 
    +the data
       -------------------------------------------------------
    
  4. or download this
       Functional style
       -------------------------------------------------------
    ...
       @cloned_hosts = My::Config::clone('db.hosts.session');    # deep cl
    +ones the data
       $config       = My::Config::object;                       # returns
    + the stored config object
       -------------------------------------------------------
    
  5. or download this
    
         $config->C('db.hosts.session');
         $config->('db.hosts.session');