or download this
my $server = "localhost"; # Default host
my $domain = ".company.com"; # Default domain
...
chdir $conf_loc or error($q, qq(Unable to locate configuration fol
+der $conf_loc));
$CFG_FILE = $server . ".$CFG_FILE" if ($server && -R "$server.$CFG
+_FILE"); # If there is a specific file then use it
}