in reply to How do I set env. Variables from Perl with shell script
Also see Get default login environment and its discussion.