/usr/share/modules/init/perl.pm is in environment-modules 3.2.10-8.
This file is owned by root:root, with mode 0o644.
The actual contents of the file can be viewed below.
1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 | if (! defined $ENV{MODULE_VERSION} ) {
$ENV{"MODULE_VERSION_STACK"}="3.2.10";
$ENV{"MODULE_VERSION"}="3.2.10";
} else {
$ENV{"MODULE_VERSION_STACK"}=$ENV{"MODULE_VERSION"};
}
sub module {
local ($exec_prefix);
$exec_prefix = "/usr/share/modules/".$ENV{"MODULE_VERSION"};
eval `$exec_prefix/bin/modulecmd perl @_`;
}
$ENV{"MODULESHOME"} = "/usr/share/modules";
if (! defined $ENV{"MODULEPATH"} ) {
open(IN, "$ENV{'MODULESHOME'}/init/.modulespath") || die "cannot open '.modulespath' file: $!\n";
$ENV{"MODULEPATH"} = join(":", grep(/\S/, map { s/^\s*//g; s/[\s#].*$//g; $_ } <IN>));
close IN;
}
if (! defined $ENV{"LOADEDMODULES"} ) {
$ENV{"LOADEDMODULES"} = "";
}
1;
|