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?
In reply to Percedence of -I, use Lib, @INC by Anonymous Monk
| For: | Use: | ||
| & | & | ||
| < | < | ||
| > | > | ||
| [ | [ | ||
| ] | ] |