Boston Linux & Unix (BLU) Home | Calendar | Mail Lists | List Archives | Desktop SIG | Hardware Hacking SIG
Wiki | Flickr | PicasaWeb | Video | Maps & Directions | Installfests | Keysignings
Linux Cafe | Meeting Notes | Linux Links | Bling | About BLU

BLU Discuss list archive


[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Perl library question



Jerry Feldman wrote:
> 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.

"perldoc perlrun" is the place to go for command-line flags.

"perl -I/foo/bar/share/lib script_you_cant_change.pl ..." should do what 
you want.





BLU is a member of BostonUserGroups
BLU is a member of BostonUserGroups
We also thank MIT for the use of their facilities.

Valid HTML 4.01! Valid CSS!



Boston Linux & Unix / webmaster@blu.org