Perl library question
Seth Gordon
sethg at ropine.com
Wed Jan 4 13:31:58 EST 2006
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.
More information about the Discuss
mailing list