NAME
SysConf - Create/Read/Update files in CentOS and Red Hat sysconfig directory
VERSION
Version 0.14
SYNOPSIS
use SysConf;
my $sysconf_file = 'name_of_file';
my $sysconf_path = '/etc/sysconfig';
my $foo = SysConf->new({'file' => $sysconf_file ,'path' => $sysconf_path});
# attach the object to the file
$foo->attach;
# get a list of all keys in the file (ignore commented ones)
my @k = $foo->keys;
# set a particular key to a particular value (will insert the key if needed)
$foo->update('bar'=>1);
# get a particular value given a key
my $val = $foo->retrieve('oof');
# delete a key/value pair
my $rv = $foo->delete('bar');
# detach the object from the file
$foo->detach;
...
SUBROUTINES/METHODS
path set or get the path in the file system where the file resides
file file set or get the name of the file
debug debug set or get the debugging switch
new
new Create an instance of this object. You may
initialize class variables with an anonymous hash
keys
keys return a list of keys stored in the file
attach
detach
retrieve
update
delete
AUTHOR
Joe Landman, <landman at scalableinformatics.com>
BUGS
Please report any bugs or feature requests to bug-sysconf at rt.cpan.org
, or through the web interface at http://rt.cpan.org/NoAuth/ReportBug.html?Queue=SysConf. I will be notified, and then you'll automatically be notified of progress on your bug as I make changes.
SUPPORT
You can find documentation for this module with the perldoc command.
perldoc SysConf
You can also look for information at:
RT: CPAN's request tracker (report bugs here)
AnnoCPAN: Annotated CPAN documentation
CPAN Ratings
Search CPAN
ACKNOWLEDGEMENTS
LICENSE AND COPYRIGHT
Copyright 2013 Scalable Informatics.
This program is free software; you can redistribute it and/or modify it under the terms of the GNU General Public License as published by the Free Software Foundation; version 2 dated June, 1991 or at your option any later version.
This program is distributed in the hope that it will be useful, but WITHOUT ANY WARRANTY; without even the implied warranty of MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU General Public License for more details.
A copy of the GNU General Public License is available in the source tree; if not, write to the Free Software Foundation, Inc., 59 Temple Place - Suite 330, Boston, MA 02111-1307, USA.