Michael C. Toren on Fri, 1 Feb 2002 18:45:59 -0500 |
> 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
|
|