in reply to Re^2: .pl or shebang
in thread .pl or shebang

yup
C:\>perl #!/usr/bin/PYTHON -T -- Can't exec /usr/bin/PYTHON at - line 1. C:\>

Replies are listed 'Best First'.
Re^4: .pl or shebang
by almut (Canon) on May 15, 2009 at 07:36 UTC

    From perlrun:

    If the #! line does not contain the word "perl", the program named after the #! is executed instead of the Perl interpreter. This is slightly bizarre, but it helps people on machines that don’t do #!, because they can tell a program that their SHELL is /usr/bin/perl, and Perl will then dispatch the program to the correct interpreter for them.

    (just in case anyone wondered what's going on...)