![]() |
|
Keep It Simple, Stupid | |
PerlMonks |
Re: Proper handling of shebang line while performing local testing?by Corion (Patriarch) |
on Sep 05, 2018 at 06:56 UTC ( #1221733=note: print w/replies, xml ) | Need Help?? |
Maybe that someone was wrong. You should have the perl (or whatever program) in the hashbang line which is used by the kernel to run the subsequent code. For shell scripts that is /bin/sh (or whatever), and for Perl scripts, that should resolve to the appropriate Perl interpreter. Using the redirection through /usr/bin/env is en vogue with some people, but hardcoding /usr/bin/perl if that's not your Perl is just wrong.
In Section
Seekers of Perl Wisdom
|
|