Re: "What is the !@#$ pathname of Perl on *this* machine?"

Will French (wfrench@interport.net)
Wed, 19 Feb 1997 16:16:54 -0500 (EST)


> The basic idea is that if the interpreter name in a '#!' line
> is a single name (rather than a pathname), the kernel will
> consult an internal list of "registered interpreters" to
> translate the name into a pathname. This allows the mapping
> from interpreter names to executable paths to vary from
> machine to machine. And since people never write relative
> paths into '#!' lines, this is upward compatible from current
> practice.

Why do you assume that "people never write relative paths into
'#!' lines"? I just tried it, and it works quite well; perhaps
there is someone somewhere who depends on it. I suggest having
a special prefix, such as "#!?perl", to tell your code to look
up perl in the list.

Other than that, it's a great idea.

$