#!/usr/bin/perl use Libconf::Glueconf::KeyValue; use Data::Dumper; my $postfix = new Libconf::Glueconf::KeyValue('main.cf'); print Data::Dumper->Dump([$postfix], ['postfix']) . "\n"; $postfix->readConf(); print Data::Dumper->Dump([$postfix], ['postfix']) . "\n"; $postfix->{inet_interfaces} = 'test_host'; print Data::Dumper->Dump([$postfix], ['postfix']) . "\n"; $postfix->writeConf();