Perl library question

Jerry Feldman gaf at blu.org
Wed Jan 4 13:15:59 EST 2006


I have a directory tree:
/foo/bar/share/bin
/foo/bar/share/lib
In a perl script, I have 
use Options; 
Where Options.pm is in /foo/bar/share/lib
I can solve the problem by adding 
use lib /foo/bar/share/lib;

But, these are standard scripts that I don't really have the authority to 
change. If I don't have the use lib, I get...
Can't locate Options.pm in @INC (@INC contains:.....)
Obviously this is set by either a Perl command line flag or environment 
variable. I have looked in programming Perl book, but  have not found it 
yet.

Note that these are scripts that must be in a specific directory tree and 
are usually called via a rather complex make, so I don't have the luxury of 
moving the perl modules elsewhere.
-- 
Jerry Feldman <gaf at blu.org>
Boston Linux and Unix user group
http://www.blu.org PGP key id:C5061EA9
PGP Key fingerprint:053C 73EC 3AC1 5C44 3E14 9245 FB00 3ED5 C506 1EA9



More information about the Discuss mailing list