Perl-Sensitive Sunglasses | |
PerlMonks |
Re^2: How do I use 'which' in the hash-bang line?by rizzo (Curate) |
on Mar 15, 2018 at 17:56 UTC ( [id://1210977]=note: print w/replies, xml ) | Need Help?? |
I usually use #!/usr/bin/env perl Is there any difference from using "which"? From the man page of "which" I would expect exactly the same behaviour: Which takes one or more arguments. For each of its arguments it prints to stdout the full path of the executables that would have been executed when this argument had been entered at the shell prompt. It does this by searching for an executable or script in the directories listed in the environment variable PATH using the same algorithm as bash(1). Updatedifference is run vs. print to stdout.
In Section
Seekers of Perl Wisdom
|
|