in reply to Re: Shebang behavior with perlin 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.