Modules::ModulesConf3pm
Setup for modules.conf
Usage
my $modulesconf = new Modules::ModulesConf(%vars);
if ($modulesconf->footprint()) {$modulesconf->setup();}
my @fileschanged = $modulesconf->files();
Overview
Methods
The following methods exist in this module:
- footprint()
-
This method returns 1 if
/etc/modules.confis being used on the machine. The test succeeds and returns 1 in two cases: Case 1: /etc/modules.conf existsand/etc/modutils/aliases does not exist. Case 2: /etc/conf.modulesand/etc/modutils/aliases both do not exist.Otherwise, this method will return undef.