NAME
config/init/data.pl - Configuration Defaults
DESCRIPTION
Sets up the configuration system's default values and data structures.
METHODS
- Configure::Data->get($key,...)
-
Return value or hash slice for key.
- Configure::Data->set($key,$val, ...)
-
Set config values
- Configure::Data->add($delim, $key,$val, ...)
-
Append values delimited by
$delim
to existing keys or set values. - Configure::Data->keys()
-
Return config keys.
- Configure::Data->dump()
-
Dump config keys.
- Configure::Data->clean()
-
Delete keys matching /^TEMP_/ from config. These are used only temporarly e.g. as file lists for Makefile generation.
- Configure::Data->settrigger($key, $trigger, $cb)
-
Set a callback on
$key
named$trigger
. Multiple triggers can be set on a given key. When the key is set viaset
oradd
then all callbacks that are defined will be called. Triggers are passed the key and value that was set after it has been changed. - Configure::Data->gettriggers($key)
-
Get the names of all triggers set for
$key
. - Configure::Data->gettrigger($key, $trigger)
-
Get the callback set for
$key
under the name$trigger
- Configure::Data->deltrigger($key, $trigger)
-
Removes the trigger on
$key
named by$trigger