in reply to Re: Modifying %ENV From The Shebang Line
in thread Modifying %ENV From The Shebang Line

Maybe that explains some of the results I've seen, where it appears everything after interpreter is glommed into a single argument. I'm now left with attempts like the following, which just churn the CPU and never start Perl.
#!/bin/bash eval 'LD_LIBRARY_PATH=/my/lib /usr/bin/perl /the/script' if $runningUnderSomeShell; warn "$ENV{LD_LIBRARY_PATH}\n";
Again, this is based on perlrun, though I'm obviously doing something wrong.

Thanks,

Jim