Actually there are three (maybe 4) ways...
use lib '/path/to/your/library/';
...or..
BEGIN {
@INC = ('/path/to/lib', '/path/to/sitelib/');
# ...or usr push or unshift to
# add to the current @INC
}
....or...
Add the path in your environment vars...
PERL5LIB='/path/to/lib'
Where you set the environment path depends on your system. In NT modify the
vars in the Control Panel/System, in Apache in the config, in DOS in
autoexec.bat, in Unix/Bash the .bash_profile, etc.
See "perldoc -q lib" (which is from Perl FAQ #8)
Rob
-----Original Message-----
From: McCollum, Frank [mailto:[EMAIL PROTECTED]]
Subject: RE: How to set @INC
I never got a response for this, but I am pretty sure you can put the line
below at the top of your script and it will search where-ever you would
like...
#!C:/Perl/bin/Perl.exe -I R:/SomeOtherDir/Frameworks/
Where the path after the '-I' tells the script to include this path as a
'search' path...
Feedback please. I've mentioned this before, but did not get any response
on whether it was working or not...
--
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]