Conf::LibconfigPerl extension for libconfig | |
Download |
Conf::Libconfig Ranking & Summary
Advertisement
- License:
- BSD License
- Publisher Name:
- Cnangel
- Publisher web site:
- http://search.cpan.org/~cnangel/
Conf::Libconfig Tags
Conf::Libconfig Description
Perl extension for libconfig You can use the Conf::Libconfig module for Perl config, and support Scalar, Array and Hash data structures etc. like C or C++ function. Conf::Libconfig could reduce your config file and quote by C/C++ transportability.SYNOPSIS use Conf::Libconfig; my $self = new Conf::Libconfig; $self->read_file($cfg); $self->read_string("test:{key = \"only for test!\";};"); my $value = $self->lookup_value("abc.edf"); print $value; use Data::Dumper; my $arrayref = $self->fetch_array("cdef.abcd.arrayref"); print Dumper $arrayref; my $hashref = $self->fetch_hashref("cdef.abcd.hashref"); print Dumper $hashref; $self->add("fghj.rtyu", "binarykey", "0b1"); $self->add_boolscalar("fghj.rtyu", "binarykey", 0); # if program is over, DESTROY can auto exit, and you can ignore function delete. $self->delete(); Requirements: · Perl
Conf::Libconfig Related Software