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)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?
Back to
Seekers of Perl Wisdom