NAME

Perlbug::Config - Perlbug Configuration data handler

DESCRIPTION

Configuration data for the Perlbug bug tracking system.

Be sure to set the 'Perlbug_SiteConfig' environment variable to the correct site configuration file, or fix the line above.

Set methods are provided only for current() parameters, the rest are all gettable only, and settable from the configuration file.

SYNOPSIS

my $o_conf = Perlbug::Config->new;

my $debug = $o_conf->current('debug');				# 0 or as set in Configuration file

my $new_debug = $o_conf->current('debug', 2);		# 2 !

my @current_data = $o_conf->get_keys('current'); 	# have a look

METHODS

new

Create new Config object with all prefs set.

my $conf = Perlbug::Config->new;
get_config_data

Retrieve data from site configuration file

my ($ok, $h_data) = get_config_data($config_file_location);
update_data

Update config data structure for current/local environment

my ($ok, $h_data) = &update_data(\%data);
check_data

Check config data structure

my ($ok, $h_data) = check_data(\%data);
get_date

Returns common date for use throughout Perlbug.

my $date = get_date;     # -> 19980815
get_keys

Return list of keys of given key, ignoring comment fields.

get_vals

Return list of values of given key, ignoring comment fields.

dump

Returns prefs, via Data::Dumper for debugging, all if no argument given.

Be sure to call it in a list context:

print $Conf->dump('system');
current

Current modifiable environment.

Get my $debuglevel = $o_obj->current('debug');

Set my $incremented = $o_obj->current('debug', $self->current('debug') + 1);

methods

Access methods to data, non are directly modifiable, see the Configuration file.

my $target_address = $o_obj->target('generic');

AUTHOR

Richard Foley perlbug@rfi.net 21.Oct.1999