Think about Loose Coupling | |
PerlMonks |
Re: Multiple Library Includesby hawtin (Prior) |
on Jul 01, 2004 at 08:42 UTC ( [id://371014]=note: print w/replies, xml ) | Need Help?? |
I think that setting $PERL5LIB will do what you want, add the following to your profile (.login/ .tcshrc or whatever): setenv PERL5LIB /usr/local/lib:/app/common/cpan:/app/subapp/cpanAlternately you can pass -I flags (for example by editing the shebang line in your scripts). And finally you can modify @INC in the scripts before calling require:
If you can recompile and reinstall Perl that solution is a good idea, but if not there is more than one way to do it.
In Section
Seekers of Perl Wisdom
|
|