in reply to Re: Shebang behavior with perl
in thread Shebang behavior with perl

Also see Get default login environment and the ensuing discussion on how to source a shell script that sets up the environment from within Perl.