getConfig

Name

getConfig -- Gets the config element associated with the given name.

Synopsis

$config = $mod->getConfig(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 an object representing one config name and its values. If no element exists with the given name, undefined is returned. The list of values can be retrieved with the nextConfigData() function of this object.

Returns

A string containing the value, or undefined if no such name exists. In case of error, the program will croak() with an appriopriate message.