![]() |
|
Syntactic Confectionery Delight | |
PerlMonks |
How do I use 'which' in the hash-bang line?by rje (Deacon) |
on Mar 15, 2018 at 14:30 UTC ( #1210960=perlquestion: print w/replies, xml ) | Need Help?? |
rje has asked for the wisdom of the Perl Monks concerning the following question:
Many moons ago, I saw a clever Perl programmer use 'which'... ON THE FIRST LINE OF HIS SCRIPT ... to find the perl executable.
In other words, instead of: #!/usr/bin/perl He did SOMETHING LIKE #!which perl ...except it wasn't exactly like that. It was sort of like that. But not exactly. So I'm trying to figure out what that command was. I figure you guys probably know it. Any ideas? Thanks.
Back to
Seekers of Perl Wisdom
|
|