getConfigValue

Name

getConfigValue -- Gets the first piece of data associated with the given name.

Synopsis

$data = $mod->getConfigValue($name);

Description

Values are associated with variable names in the config block of the RSPD configuration file. Multiple values may be associated with a name (generally signifying an array), or just one. This function returns the first piece of data associated with a given name (undefined if no element with such a name exists). This function would be used for elements which should be scalars (one value for one name). Even if the user sets it multiple times, only the first value is returned.

Returns

A string containing the value, or undefined if no such name exists.