I don't think you want to use their code. The version they gave you is an inefficient form that applies to all their users. All you want to do is add /home/prcsaca/perl to the "SetEnv PERL5LIB..." lines in your .conf file. So you might have something like: SetEnv PERL5LIB "/home/prcsaca/perl:/home/prcsaca/kohaclone" --joe On Tue, Aug 12, 2008 at 12:48 PM, Dwayne Collins <dcollins@prcsa.ca> wrote:
You will need to add /home/prcsaca/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; }