Beefy Boxes and Bandwidth Generously Provided by pair Networks
Perl Monk, Perl Meditation
 
PerlMonks  

Re: How to PERMENANTLY add to INC

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


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
Chatterbox?
and the web crawler heard nothing...

How do I use this?Last hourOther CB clients
Other Users?
Others romping around the Monastery: (1)
As of 2024-04-24 16:20 GMT
Sections?
Information?
Find Nodes?
Leftovers?
    Voting Booth?

    No recent polls found