Config::Std

Config::Std is a Perl module load and save configuration files in a standard format.
Download

Config::Std Ranking & Summary

Advertisement

  • Rating:
  • License:
  • Perl Artistic License
  • Price:
  • FREE
  • Publisher Name:
  • Damian Conway
  • Publisher web site:
  • http://search.cpan.org/~dconway/

Config::Std Tags


Config::Std Description

Config::Std is a Perl module load and save configuration files in a standard format. Config::Std is a Perl module load and save configuration files in a standard format.SYNOPSIS use Config::Std; # Load named config file into specified hash... read_config 'demo2.cfg' => my %config; # Extract the value of a key/value pair from a specified section... $config_value = $config{Section_label}{key}; # Change (or create) the value of a key/value pair... $config{Other_section_label}{other_key} = $new_val; # Update the config file from which this hash was loaded... write_config %config; # Write the config information to another file as well... write_config %config, $other_file_name;This module implements yet another damn configuration-file system.The configuration language is deliberately simple and limited, and the module works hard to preserve as much information (section order, comments, etc.) as possible when a configuration file is updated.See Chapter 19 of "Perl Best Practices" (O'Reilly, 2005) for the rationale for this approach. Requirements: · Perl


Config::Std Related Software