Config::Backend::INI - a .ini file backend for conf
Config::Backend::INI is an INI file (windows alike) backend for Conf. It handles a an INI file with identifiers that are assigned values. Identifiers with a '.' (dot) in it, are divided in a section and a variable.
Config::Backend::INI
This module uses Config::IniFiles for reading and writing .INI files. Each call to set() or del() will immediately result in a commit to the .ini file.
set()
del()
new(filename) --> Config::Backend::INI
Invoked with a valid filename, will return a Config::Backend::INI object that is connected to this file.
This function will untie from the ini file.
set(var,value) --> void
Sets config key var to value. If var contains a dot (.), the characters prefixing the '.' will represent a section in the .ini file. Sample:
$conf->set("section.var","value")
will result in:
[section] var=value
get(var) --> string
Reads var from config. Returns undef, if var does not exist. Returns the value of configuration item var, otherwise.
undef
var
del(var) --> void
Deletes variable var from the Configuration.
variables() --> list of strings
Returns all variables in the configuraton backend.
Config::Frontend.
Hans Oesterholt-Dijkema, <oesterhol@cpan.org>
Copyright 2004 by Hans Oesterholt-Dijkema
This library is free software; you can redistribute it and/or modify it under LGPL.
To install Config::Backend::INI, copy and paste the appropriate command in to your terminal.
cpanm
cpanm Config::Backend::INI
CPAN shell
perl -MCPAN -e shell install Config::Backend::INI
For more information on module installation, please visit the detailed CPAN module installation guide.