G
Guest
I am trying to use a module I have already installed on cpanel theme v3,
I have installed it per the host's instructions, and have added the code
given by the host:
my $homedir = (getpwuid($>))[7];
my $n_inc = scalar @INC;
for (my $i = 0; $i < $n_inc; $i++ ) {
if (-d $homedir . '/perl' . $INC[$i]) {
unshift(@INC,$homedir . '/perl' . $INC[$i]);
$n_inc++;
$i++;
}
}
However it says the module cannot be located even though I have tried it
with and without the library paths, i.e
use module;
or
use module '/path/to/module.pm';
I have installed it per the host's instructions, and have added the code
given by the host:
my $homedir = (getpwuid($>))[7];
my $n_inc = scalar @INC;
for (my $i = 0; $i < $n_inc; $i++ ) {
if (-d $homedir . '/perl' . $INC[$i]) {
unshift(@INC,$homedir . '/perl' . $INC[$i]);
$n_inc++;
$i++;
}
}
However it says the module cannot be located even though I have tried it
with and without the library paths, i.e
use module;
or
use module '/path/to/module.pm';