bdhond has asked for the wisdom of the Perl Monks concerning the following question:
Out of Hubris, I'm developing a simple scripting language. The interpreter is a perl program.
This now works by doing
$ interpreter.pl myscript
What I would like to do is, to include as the first line of my script (made executable, of course):
#! /path/to/interpreter.pl
and just run the script itself.
But when I do that, the interpreter never starts, and the shell tries executing the script. This I don't understand, because the shell does not do that when I start the script with
#! cat
In that case, the script is handed to cat perfectly. What is missing in my setup?
This is under Mac OS X Darwin, which is like BSD
Cheers,
Bas
|
|---|
| Replies are listed 'Best First'. | |
|---|---|
|
•Re: Shebang to a perl program
by merlyn (Sage) on Jan 19, 2003 at 13:50 UTC | |
|
Re: Shebang to a perl program
by IlyaM (Parson) on Jan 19, 2003 at 13:50 UTC | |
|
Re: Shebang to a perl program
by adrianh (Chancellor) on Jan 19, 2003 at 14:08 UTC | |
by bdhond (Initiate) on Jan 19, 2003 at 14:53 UTC |