Labrador::Common::Config
use Labrador::Common::Config; my $config = new Labrador::Common::Config(filename => '../data/etc/labrador.cfg'); my $port = $config->get_scalar('DispatcherPort'); my $urlalloc = $config->get_scalar('URLAlloc', 1) || 'Delay';
Loads config file from file or a string. The string options means that the configuration file can be transferred across the network from the dispatcher.
%options = filename => $filename OR text => \@text
Get the value of the directive named $name in the config file. Return undef if $optional is set and the parameter isn't found.
Get all values of named $name in the config file. Return undef if $optional is set and and the parameter isn't found.
Returns a reference to (or an array of all lines) of the text of the config file, with all comments and blank lines omitted.
Set a default for a parameter if it isn't in the configuration file that was parsed. Most cases should use the get_ directives with $optional set. This method is provided for if a higher module wants to override a default.
$Revision: 1.8 $