NAME

  Libconf - Set of abstraction layers to the linux/unix configuration


SYNOPSIS

High level
  use Libconf::Glueconf::Networking::Resolv;
  my $resolv = new Libconf::Glueconf::Networking::Resolv('/etc/resolv.conf');
  push(@{$resolv->{nameserver}}, '192.168.76.7');
  $resolv->{search}->[1] = 'foo';
  $resolv->writeConf('/etc/resolv_modified');
Low level (don't use this unless you know what you're doing)
  $struct = new Libconf("smb.conf", 'samba', '');
  $struct->editAtom(-1, {key => 'writable', value => 'TEST', sections => [{name => 'homes'}] });
  $struct->appendAtom({key => 'K1', value => 'hello', type => 'KEY_VALUE' });
  $struct->writeConf("smb.conf");


DESCRIPTION

High level
See the Libconf::Glueconf manpage for more information on this layer

Low level (don't use this unless you know what you're doing)
The low level layer is used to parse one configuration file. It gives in return a structure that is simple, but not as easy to manipulate as the one Libconf::Glueconf can provide. Libconf::Glueconf actually uses this structure to map it onto perl hashes (using tie). You can modify the datas of the structure, and write them back. The configuration informations are stored in a sequential manner. The power of the low level layer, is that its structure is unique for any configuration file type.

See the Libconf::Templates manpage for more information on this layer


SEE ALSO

the Libconf::System manpage, the Libconf::Glueconf manpage, the Libconf::Templates manpage