Re: problem in setting environmental variable

On 03/05/2007 03:59 AM, rameshotn3@xxxxxxxxx wrote:
I am giving export command in script like
system("export ram");

The variable is exported automatically when you set a key in %ENV.

$ENV{ram} = 20;
system ('echo $ram');

system command forking one more child process. So the value becomes temporary.

It will always be temporary.

How can I come out of this problem.
Any help in this regard.

There is no way to do this directly. Read "perldoc -q environment"