Conf::Libconfig 0.06

Оценок пока нет — будьте первым

Описание

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:

Информация о программе

  • Категория: Другое
  • ОС: Linux
  • Скачиваний: 0
Скачать