NAME

Config::Writer - a module to write configuration files in an easy and safe way.

DESCRIPTION

This module is intended to perform the next operations:

Now you are able to restore configuration file even if you forgot to create a backup file before editing it!

CAVEATS

SYNOPSIS

my $fh = Config::Writer->new('file.conf', {
    'workdir'     => '/usr/local/etc',
    'owner'       => 'nobody',
    'permissions' => 0640,
    'retain'      => 4
});
die "can not open file for writing" if $fh->error;
$fh->sayf('# Configuration file created with %s', $0);
$fh->close;

METHODS

AUTHORS

CHANGELOG

TODO