I have search documentation, but have not found an explicit answer as to why perl supports the following:
A simple shell script (foo.sh)All of these work:#!/bin/sh echo "Hello"
unix> foo.sh unix> sh foo.sh unix> perl foo.sh
The #! has to be the first line in the file, or it will not work. Is this a known/documented feature of perl?
In reply to Shebang behavior with perl by McKreeger
| For: | Use: | ||
| & | & | ||
| < | < | ||
| > | > | ||
| [ | [ | ||
| ] | ] |