All pastes #942215 Raw Edit

Unnamed

public text v1 · immutable
·published 2008-03-14 10:38 UTC
rendered paste body
Location of Your Perl Module(s) 
Path: /home/jlcopaco/perl 



Using Your Perl Module(s) 
You will need to add /home/jlcopaco/perl to the include path. 
You can do this by adding the following code to your script: 

BEGIN {
     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++;
	  }
     }
}