Very true...that is exactly the behavior I'm observing in the windows cmd window. How do I get the env. variables to stay put ? Running the perl script from a batch script is not right now an option for me.
Re^2: Issue with env variables set through dos batch
Replies are listed 'Best First'.
In general if you set ENV variables in a shell and then launch a program from that shell's environment, the program will inherit the environment variables.
I you want some ENV variables to apply to any command line window, Go to Control Panel|System|Environment Variables, change them and then set them "to apply to all future command line windows". This is for example, how you would set "PATH" to be persistent.
If this is a "one off" thing, then I would pass special settings as part of @ARG.