AI::FreeHAL::Config

Load and save configuration files in a standard format
Download

AI::FreeHAL::Config Ranking & Summary

Advertisement

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

AI::FreeHAL::Config Tags


AI::FreeHAL::Config Description

Load and save configuration files in a standard format AI::FreeHAL::Config is a Perl module to load and save configuration files in a standard format.SYNOPSIS use AI::FreeHAL::Config; # 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


AI::FreeHAL::Config Related Software