|Syntactic Confectionery Delight|
How do I use 'which' in the hash-bang line?by rje (Deacon)
|on Mar 15, 2018 at 14:30 UTC||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:
He did SOMETHING LIKE
...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.