The shebang line is handled by the kernel, not the shell. A script after the shebang line is not allowed.
From the execve(2) manpage:
execve() executes the program pointed to by filename. filename must be either a binary executable, or a script starting with a line of the form "#! interpreter [arg]". In the latter case, the interpreter must be a valid pathname for an executable which is not itself a script, which will be invoked as interpreter arg filename.
In reply to Re: perlscript as she-bang line
by ambrus
in thread perlscript as she-bang line
by saintmike
| For: | Use: | ||
| & | & | ||
| < | < | ||
| > | > | ||
| [ | [ | ||
| ] | ] |