Kyle R . Burton on Sat, 2 Feb 2002 00:50:22 +0100


[Date Prev] [Date Next] [Thread Prev] [Thread Next] [Date Index] [Thread Index]

Re: [PLUG] perl -T && use


> Invoking perl -wT and then beginning
> 
>     use load;
>     Can't locate load.pm in @INC (@INC contains: ...
> 
> It's clear to me what's going on: load.pm is in ., which is not in
> PERL5LIB. But this is a CGI script on a machine that is not mine, so I
> don't really get to control PERL5LIB (short of a wrapper shell
> script).
> 
> Anyone know how this should be done? I haven't found a google query
> that gets me an explanation, though I've read a lot of interesting
> things on other topics in trying. ;-)

I think you could just do a:

  use lib '/path/to/your/modules';

At the top of your perl program -- before any of the 'use' statements
that depend on @INC.

k

-- 

------------------------------------------------------------------------------
Wisdom and Compassion are inseparable.
        -- Christmas Humphreys
mortis@voicenet.com                            http://www.voicenet.com/~mortis
------------------------------------------------------------------------------

______________________________________________________________________
Philadelphia Linux Users Group       -      http://www.phillylinux.org
Announcements-http://lists.phillylinux.org/mail/listinfo/plug-announce
General Discussion  -  http://lists.phillylinux.org/mail/listinfo/plug