Beefy Boxes and Bandwidth Generously Provided by pair Networks BBQ
No such thing as a small change
 
PerlMonks  

Re: How to PERMENANTLY add to INC

by premchai21 (Curate)
on Nov 09, 2001 at 19:42 UTC ( [id://124471]=note: print w/replies, xml ) Need Help??

This is an archived low-energy page for bots and other anonmyous visitors. Please sign up if you are a human and want to interact.


in reply to How to PERMENANTLY add to INC

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...

Log In?
Username:
Password:

What's my password?
Create A New User
Domain Nodelet?
Node Status?
node history
Node Type: note [id://124471]
help
Sections?
Information?
Find Nodes?
Leftovers?
    Notices?
    hippoepoptai's answer Re: how do I set a cookie and redirect was blessed by hippo!
    erzuuliAnonymous Monks are no longer allowed to use Super Search, due to an excessive use of this resource by robots.