|
|
Question : Environment Variables
|
|
Can a Perl program access environment variables from inside the program? What Im kind of wondering is if a Perl script is activated, say from inside a UNIX shell, can it somehow ask for a variable that is somewhere in the host environment, say a variable that was created within that shell itself? This needs to be done without passing the values in as variables to the shell script. If it is possible how do I do it?
|
Answer : Environment Variables
|
|
Something like this: $server = $ENV{MY_SERVER_VARIABLE};
|
|
|
|
|