Perl Monk, Perl Meditation | |
PerlMonks |
Re: How to PERMENANTLY add to INCby premchai21 (Curate) |
on Nov 10, 2001 at 00:42 UTC ( [id://124471]=note: print w/replies, xml ) | Need Help?? |
The best way AFAICT is to use the environment variable PERL5LIB. So setting the environment variable PERL5LIB to, say, /foo/bar:/bar/foo before invoking perl will add /foo/bar and /bar/foo to @INC. If you want this to occur more than in your shell, you'll need to specify what sort of OS you're running. Another, less good way is to do an alias perl='perl -I/foo/bar -I/bar/foo' (or its equivalent, if you're not running bash); IMHO this is less correct however. HTH...
In Section
Seekers of Perl Wisdom
|
|