Beefy Boxes and Bandwidth Generously Provided by pair Networks
Perl: the Markov chain saw

Re: setting path to LIB folder

by vagnerr (Prior)
on Apr 15, 2004 at 11:07 UTC ( #345352=note: print w/replies, xml ) Need Help??

in reply to setting path to LIB folder

If you have many perl scripts, or don't what to have to do a "use lib" in all your scripts you can also set the environment variable PERL5LIB to the directory containing your modules. eg.
export PERL5LIB=/path/to/lib/dir
Under unix (specificaly bash). If you put that in your .bash_profile then you dont have to worry about it again

Remember that amateurs built Noah's Ark. Professionals built the Titanic.

Replies are listed 'Best First'.
Re(2): setting path to LIB folder
by bart (Canon) on Apr 15, 2004 at 11:25 UTC
    If this is for CGI scripts under Apache, and Taint isn't on, then you can set environment variables in your httpd.conf or .htaccess files, using the SetEnv directive. If your server setup allows it...

    I don't even know which directive-type you'd have to allow, except that it definitely won't work if AllowOverride is set to "None". ("In this case, the server will not even attempt to read .htaccess files in the filesystem.")

Re: Re: setting path to LIB folder
by Anonymous Monk on Apr 15, 2004 at 11:11 UTC
    Except when you turn -Taint on

Log In?

What's my password?
Create A New User
Node Status?
node history
Node Type: note [id://345352]
thezip looks around to see no one else dancing to Piazzola...
[thezip]: Our cat is single-handedly (pawed-ly?) solving our field mouse problem. About four critters in the last week alone.
[thezip]: Amazing speed and stealth in that one.

How do I use this? | Other CB clients
Other Users?
Others chilling in the Monastery: (12)
As of 2017-11-17 19:46 GMT
Find Nodes?
    Voting Booth?
    In order to be able to say "I know Perl", you must have:

    Results (272 votes). Check out past polls.