Parrot::Configure::Data - Configuration data container
This module contains configuration data for use by the other Parrot::Configure::* modules.
- Parrot::Configure::Data->get($key,...)
- Return value or hash slice for key.
- Parrot::Configure::Data->set($key,$val,
...)
- Set config values
- Parrot::Configure::Data->add($delim,
$key,$val,
...)
- Append values delimited by
$delim
to existing keys or set values.
- Parrot::Configure::Data->keys()
- Return config keys.
- Parrot::Configure::Data->dump()
- Dump config keys.
- Parrot::Configure::Data->clean()
- Delete keys matching /^TEMP_/ from config.
These are used only temporarly e.g.
as file lists for Makefile generation.
- Parrot::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 via set
or add
then all callbacks that are defined will be called.
Triggers are passed the key and value that was set after it has been changed.
- Parrot::Configure::Data->gettriggers($key)
- Get the names of all triggers set for
$key
.
- Parrot::Configure::Data->gettrigger($key,
$trigger)
- Get the callback set for
$key
under the name $trigger
- Parrot::Configure::Data->deltrigger($key,
$trigger)
- Removes the trigger on
$key
named by $trigger