I have perl script and in the first line we are invoking .sh script to set ENV variables.
e..g
eval '. $envfile; exec $PERL -S $0 "$@"'
I want to change some of the env variables while the program is running and I am settging it like this ..
$ENV{ORACLE_HOME}=trim($oraclehome);
$ENV{ORACLE_SID}=$server;
but, these values are not reflecting globally ( to other modules) .how to change these variables so that I can see the values out side of program too .
Thanks