NAME

esmith::config - Access e-smith config files via tied hashes

VERSION

This file documents esmith::config version 1.4.0

SYNOPSIS

use esmith::config;

DESCRIPTION

The esmith::config package enables Perl programs to read and write entries from the e-smith configuration file using a tied hash table.

The configuration file has a simple ASCII representation, with one "key=value" entry per line.

Usage example:

#!/usr/bin/perl -wT

use esmith::config;
use strict;

my %conf;
tie %conf, 'esmith::config', '/etc/testconfig';

# write value to config file
$conf {'DomainName'} = 'mycompany.xxx';

read value from config file
print $conf {'DomainName'} . "\n";

# dump contents of config file
while (($key,$value) = each %conf)
{
    print "$key=$value\n";
}

AUTHOR

e-smith, inc.

For more information, see http://www.e-smith.org/