new(filename -> Conf::INIDESTROY()set(var,value) -> voidget(var) -> stringvariables() -> list of strings
An .ini file backend for conf
Conf::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.
This module uses Tie::Cfg for reading and writing .INI files.
Each call to set() will not immediately result in a
commit to the .ini file.
Each call set() will immediately result in a commit
to the database.
new(filename --> Conf::INIInvoked with a valid filename, will return a Conf::INI object that is connected to this file.
DESTROY()This function will untie from the ini file.
set(var,value) --> voidSets 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) --> stringReads var from config. Returns undef, if var does not
exist. Returns the value of configuration item var,
otherwise.
variables() --> list of stringsReturns all variables in the configuraton backend.
Conf.
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.