R
rameshotn3
Hi all I searched in google for this.But no solution is working.
I am Ramesh working on perl.I am facing one problem in exporting an
variable.
Requirement:
I have to export a new variable through a perl script.
in brief :
-->in vi editor i am able to export like below.
export ram=20;
--->If I want to see the variable: echo $ram
giving 20 as the answer.But when I put the export commnad in perl
script & giving "echo" on vi editor it doesn't giving the value
associated with that environmental variable
I got the reason:
I am giving export command in script like
$ram=20;
system("export ram");
system command forking one more child process. So the value becomes
temporary.
How can I come out of this problem.
Any help in this regard.
I am Ramesh working on perl.I am facing one problem in exporting an
variable.
Requirement:
I have to export a new variable through a perl script.
in brief :
-->in vi editor i am able to export like below.
export ram=20;
--->If I want to see the variable: echo $ram
giving 20 as the answer.But when I put the export commnad in perl
script & giving "echo" on vi editor it doesn't giving the value
associated with that environmental variable
I got the reason:
I am giving export command in script like
$ram=20;
system("export ram");
system command forking one more child process. So the value becomes
temporary.
How can I come out of this problem.
Any help in this regard.