See perlfaq8.
(I {changed directory, modified my environment} in a perl script. How come the change disappeared when I exited the script? How do I get my changes to be visible?)
In reply to Re: Setting environment variables by eg in thread Setting environment variables by Anonymous Monk