RE: [PBML] adding a path variable to @inc..
- disregard the last email,, I kept playing and ended up working by changing
I changed to this:
and it worked, it surprised the hell out of me...
anyway it works, many thanks..
From: Franki [mailto:frankieh@...]
Sent: Sunday, 1 July 2001 7:05 AM
Subject: [PBML] adding a path variable to @inc..
I have a script that has a couple of modules that it uses..
they are called EnigmaCrypter.pm and StringUtilityBelt.pm
They obviously are not part of a standard perl install... and many of my
clients are not permitted to load modules on the servers they use...
In linux/unix servers this doesn't matter because the libs are in the script
working directory... and it picks them up just fine with the standard use
but the NT/2000 version of this script.. doesn't work like that and only
looks in @INC for the modules..
which only contains : C:/Perl/lib C:/Perl/site/lib
so I want to add the working directory to @INC...
I have a variable that defines the current path to the working directory..
So I have a quick question,,
is there a really simple way to add $PaTh to @INC ??
or alternatively,, is there a way to explicitly define a path in a use
statement the same way I do a .pl lib with require??
but obviously not the above as it doesn't work...
any suggestions would be most appreciated...
Your use of Yahoo! Groups is subject to http://docs.yahoo.com/info/terms/