Current location: Hot Scripts Forums » Programming Languages » Perl » Perl Modules


Perl Modules

Reply
  #1 (permalink)  
Old 09-23-09, 01:16 AM
Polcham Polcham is offline
New Member
 
Join Date: Sep 2009
Posts: 1
Thanks: 0
Thanked 0 Times in 0 Posts
Perl Modules

I need help with a perl module that I have installed on my web host.

The module came from CPAN cpan.org

The perl module is W3C::LogValidator (1.025) and has been successfully installed on my server.

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 /home/aboul/perl to the include path.
You can do this by adding the following code to your script:
perl Code:
  1. BEGIN {
  2.     my $homedir = ( getpwuid($>) )[7];
  3.     my @user_include;
  4.     foreach my $path (@INC) {
  5.         if ( -d $homedir . '/perl' . $path ) {
  6.             push @user_include, $homedir . '/perl' . $path;
  7.         }
  8.     }
  9.     unshift @INC, @user_include;
  10. }



I do not understand what exactly must be done to enable me to use the module.

Can anyone help me?

Thank you.

G N781974

Last edited by Nico; 09-23-09 at 04:13 AM.
Reply With Quote
Reply

Bookmarks

Tags
perl modules


Currently Active Users Viewing This Thread: 1 (0 members and 1 guests)
 
Thread Tools
Display Modes

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is Off
HTML code is Off
Trackbacks are On
Pingbacks are On
Refbacks are On

Forum Jump

Similar Threads
Thread Thread Starter Forum Replies Last Post
Perl subsititution on Windows kenkanya Perl 3 07-28-09 12:23 AM
PERL modules and instructions for their usage jdlev Perl 1 12-18-08 01:47 PM
Perl upload progress bar with these spec: scott2500uk Script Requests 4 03-16-07 04:04 PM
Perl FormMail Problem ennanguyen2002 Perl 2 03-09-05 04:47 PM
Print the list of perl modules installed on the web-server khibinite Perl 2 07-01-04 12:37 AM


All times are GMT -5. The time now is 04:52 AM.
vBulletin® Copyright ©2000 - 2012, Jelsoft Enterprises Ltd.