http://qs1969.pair.com?node_id=1118439

McKreeger has asked for the wisdom of the Perl Monks concerning the following question:

I have search documentation, but have not found an explicit answer as to why perl supports the following:

A simple shell script (foo.sh)
#!/bin/sh echo "Hello"
All of these work:
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?