SysConf - Create/Read/Update files in CentOS and Red Hat sysconfig directory
Version 0.14
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; ...
new Create an instance of this object. You may initialize class variables with an anonymous hash
keys return a list of keys stored in the file
Joe Landman, <landman at scalableinformatics.com>
<landman at scalableinformatics.com>
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.
bug-sysconf at rt.cpan.org
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)
http://rt.cpan.org/NoAuth/Bugs.html?Dist=SysConf
AnnoCPAN: Annotated CPAN documentation
http://annocpan.org/dist/SysConf
CPAN Ratings
http://cpanratings.perl.org/d/SysConf
Search CPAN
http://search.cpan.org/dist/SysConf/
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.
To install SysConf, copy and paste the appropriate command in to your terminal.
cpanm
cpanm SysConf
CPAN shell
perl -MCPAN -e shell install SysConf
For more information on module installation, please visit the detailed CPAN module installation guide.