in reply to Call shell script variables in perl
See Get default login environment and its discussion.