Anonymous Monk has asked for the wisdom of the Perl Monks concerning the following question:
I have to do both module and application development in Perl. Once modules are done, they are placed in a shared repository.
The repository is in a non-standard location and so I use the following in my applications to get at the functionality:
use lib '/foo/bar/shared_modules';
However, sometimes I want to make a small modification to a local copy the module and then use that with my program.
Ideally, I don't want to change the 'use lib' line of the program - the fewer lines that have to change, the better.
I tried to run the application as follows to compile against my local (modified) module:
perl -I/home/user/local_modules MyApplication.pl
But, what I find is that the directory of 'use lib' has precedence. Is there a way from the command line to have my custom module directory searched first?
|
|---|
| Replies are listed 'Best First'. | |
|---|---|
|
Re: Percedence of -I, use Lib, @INC
by Burak (Chaplain) on Aug 20, 2007 at 17:15 UTC | |
|
Re: Percedence of -I, use Lib, @INC
by matsi (Novice) on Aug 20, 2007 at 17:49 UTC | |
by ikegami (Patriarch) on Aug 21, 2007 at 13:47 UTC | |
by Anonymous Monk on Aug 20, 2007 at 17:52 UTC | |
|
Re: Percedence of -I, use Lib, @INC
by sgt (Deacon) on Aug 21, 2007 at 16:28 UTC |