Don't forget the environment variable PERL5LIB.
On a Win2k machine, I added to
@INC a directory where I keep some local modules,
H:\devperl\tools, by setting this variable via the Windoze Control Panel. This way I don't need any
use lib statements in scripts.
C:\>set
PERL5LIB=H:\devperl\tools;
C:\>perl -e"print qq( @INC )"
H:\devperl\tools C:/Perl/lib C:/Perl/site/lib .
HTH
Rudif
P.S. If you are using taint checks,
PER5LIB is ignored, and you have to resort to
use lib statements in scripts.
See
perlrun.
PPS.
However, Windows uses the backslash, not the forward slash.
AFAIK, Perl is equally happy with either kind of slash on Windoze, even both kinds in the same path:
print "yes dir\n" if -d "c:\\perl/lib";
print "yes dir\n" if -d 'c:\perl/lib';
You
have to use backslashes only if you feed the path to a Windoze command, for example
system "dir c:\\perl\\lib";