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 |
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 | |
We also thank MIT for the use of their facilities. |