Help for this page

Select Code to Download


  1. or download this
     use Config::File;
    
      $conf = Config::File->new( file => $file, path => $path );
    
      print $conf->key;
    
  2. or download this
      use Config::File 'config';
    
      %hash = config( file => $file, path => $path );
    
      print $hash{key};
    
  3. or download this
      use Config::File 'config';
    
      $hashref = config( file => $file, path => $path );
    
      print $hashref->{key};
    
  4. or download this
      use Config::File;
      $conf = Config::File->new(file => 'my.conf');
    ...
      print $conf->db_password, $/;
      print $conf->blocked_words->[0], $/;
      print $conf->emails->{webmaster}, $/;
    
  5. or download this
      {
        db_password => 'secret',
    ...
                    webmaster => 'webmaster@fireartist.com',
                   }
      }
    
  6. or download this
      secret
      list
      webmaster@fireartist.com
    
  7. or download this
    package Config::File;
    $VERSION = '0.30';
    ...
    
    
    1;