Josh Rabinowitz > Sman > Sman::Config

Download:
Sman-1.03.tar.gz

Dependencies

Annotate this POD

View/Report Bugs
Source   Latest Release: Sman-1.03_002

NAME ^

Sman::Config - Find and read config files for the Sman tool

SYNOPSIS ^

  # this module is intended for internal use by sman and sman-update
  my $smanconfig = new Sman::Config();
  my @conffiles = $smanconfig->FindConfigFiles();
  # or
  my $fileread = $smanconfig->ReadDefaultConfigFile();
  
  my $indexfile = $smanconfig->GetConfigData("SWISHE_IndexFile");

DESCRIPTION ^

Find and read Sman configuration files.

The 'default config file' is the first file called 'sman.conf' in the directory with the invoking perl script, $ENV{HOME}, /usr/local/etc, or /etc. If no file name sman.conf is is found in any of those directories, the first file called 'sman-defaults.conf' in the same list of directories is used.

AUTHOR ^

Josh Rabinowitz <joshr>

SEE ALSO ^

sman.conf, sman-update, sman

syntax highlighting: