|
[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).
You don't have control of PERL5LIB, but you do have control of @INC, which
contains the list of directories where modules can be found. So, you could
do something like:
BEGIN { unshift @INC, "." }
use load;
Or, use lib.pm for something a little more pleasing to the eye:
use lib ".";
use load;
Good luck,
-mct
|
|