polcham
10-01-2009, 03:33 AM
It is installed as a perl module.
The module came from CPAN cpan.org
Now that I have it on the blue host server, I am trying to use it.
I need help in deciphering what I am being instructed to do.
I have instructions from my host say the following:
Perl modules are collections of functions that allow you to perform tasks in Perl. You will need to install a Perl module before you can use it inside a Perl program.
Note: Modules are installed directly from the CPAN repository.
Location of Your Perl Module(s)
Path: /home/aboul/perl
Using Your Perl Module(s)
You will need to add /home2/aboutell/perl to the include path.
You can do this by adding the following code to your script:
BEGIN {
my $homedir = ( getpwuid($>) )[7];
my @user_include;
foreach my $path (@INC) {
if ( -d $homedir . '/perl' . $path ) {
push @user_include, $homedir . '/perl' . $path;
}
}
unshift @INC, @user_include;
}
I do not understand what exactly must be done to enable me to use the module.
Can anyone help me?
Thank you.
The module came from CPAN cpan.org
Now that I have it on the blue host server, I am trying to use it.
I need help in deciphering what I am being instructed to do.
I have instructions from my host say the following:
Perl modules are collections of functions that allow you to perform tasks in Perl. You will need to install a Perl module before you can use it inside a Perl program.
Note: Modules are installed directly from the CPAN repository.
Location of Your Perl Module(s)
Path: /home/aboul/perl
Using Your Perl Module(s)
You will need to add /home2/aboutell/perl to the include path.
You can do this by adding the following code to your script:
BEGIN {
my $homedir = ( getpwuid($>) )[7];
my @user_include;
foreach my $path (@INC) {
if ( -d $homedir . '/perl' . $path ) {
push @user_include, $homedir . '/perl' . $path;
}
}
unshift @INC, @user_include;
}
I do not understand what exactly must be done to enable me to use the module.
Can anyone help me?
Thank you.