in reply to Env Variable value not persistent
In general, child processes (like perl scripts) get a copy of the environment variables from their parent (commonly the shell), to work with. So any change they make to it, won't go back into the parent process.