in reply to Changing parent process environment variable
I don't know that it is possible to change the parent shell's environment variables. Why are you trying to do this?
Perhaps another approach would be to exec a new shell with the environment you want?
In Section Seekers of Perl Wisdom