in reply to create environment variable at run time

I'm second to brain's comment "You can't set this value from one process and see it in some other ... ".

You may take the following approaches for solving your problem

1. If you have various scripts then, its better to export the variables on the command line and then execute your script(s). In this way any of your perl scripts can access the exported variables.

OR

2) Have a conf file within your application. When your application loads, read the conf file and export your variables to the ENV{}. In this way I suppose your other scripts can also access the variables.

Good Luck !!
  • Comment on Re: create environment variable at run time