> As a newbie to perl I have a very simple question about the #! lines of perl
> scripts in majordomo.
> Does what follows the #! need to be the location of the perl executable
> such as /usr/local/bin/perl or the location of the perl (.pl) files which is
> somewhere else in a /lib directory. Also do files such as majordomo.pl need
> this line (#!...etc.) as the first string, or only the executables such as
> wrapper and resend?
> Sorry for such a simple question but our sys. admin. is on vacation.
Ours is even when he is here.
I think the answer to your question is:
The current shell reads the first line of an executable script, and finding
the sharp-bang, interprets what follows as the name of the "shell" to
called to run the rest of the script.
If what follows the sharp-bang is not the name of a "shell" the line
is interpretd as a comment, as lines beginning with a sharp are supposed
The seems to be some disagreement as to whether white-space between the
bang and the shell name causes the line to be taken to be a comment or
You didn't ask, but I'll tell you that if the "shell" takes command-line
arguments, anything to the right of the shell-name will be passed as
- L. F. (Larry) Sheldon, Jr. -
. Unix Systems and Network Administration .
- Creighton University Computer Center-Old Gym -
. 2500 California Plaza .
- Omaha, Nebraska, U.S.A. 68178 We are all faced with -
. email@example.com great opportunities .
- 402 280-2254 (work) brilliantly disguised as -
. 402 681-4726 (cellular) impossible situations. .
- 402 977-2946 (pager) -
. 402 332-4622 (residence) Bits and Pieces .