Beefy Boxes and Bandwidth Generously Provided by pair Networks
Problems? Is your data what you think it is?

Re: Setting Environment Variables in Linux

by szbalint (Friar)
on Nov 12, 2005 at 02:08 UTC ( #507914=note: print w/replies, xml ) Need Help??

in reply to Setting Environment Variables in Linux

An effective solution doesn't necessarily mean Perl in this case.

PATH is most likely set, assuming you're using bash by the file .bash_profile for login shells or by .bashrc for non-login shells in your home directory.

By the description I was assuming that you were interested in setting the PATH for your shell use.

From perldoc perlvar: "$ENV{expr} - The hash %ENV contains your current environment. Setting a value in "ENV" changes the environment for any child processes you subsequently fork() off."

This means a script cannot modify the ENV for it's parent shell, only for it's children processes. A shell is a script's parent process.

Log In?

What's my password?
Create A New User
Node Status?
node history
Node Type: note [id://507914]
[vedagiri89]: from the source
[hippo]: But is under vendor_perl in your error message so you are mixing up modules installed from the packager and by hand. That's rarely a good plan.
[vedagiri89]: the prm fine if i run file directly..not working if i run through apache http file
[hippo]: Environments differ.
[vedagiri89]: so, how to fix that differ
[choroba]: option one is install everything from the vendor
[choroba]: option two is install everything by hand
[choroba]: option three is mixed the two, but know well what you're doing

How do I use this? | Other CB clients
Other Users?
Others exploiting the Monastery: (10)
As of 2018-06-19 11:41 GMT
Find Nodes?
    Voting Booth?
    Should cpanminus be part of the standard Perl release?

    Results (113 votes). Check out past polls.