[Gllug] Perl 'running' python and bash

Doug Winter doug at pigeonhold.com
Sun May 1 20:50:53 UTC 2005


Mark Hill wrote:
> Is there any reason why perl does this, or was it implemented just for
> fun? 

strange.

The perlrun(1) manpage says:

# 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.

doug.

-- 
6973E2CF: 2C95 66AD 1596 37D2 41FC 609F 76C0 A4EC 6973 E2CF
http://adju.st/
information wants to be noise
-- 
Gllug mailing list  -  Gllug at gllug.org.uk
http://lists.gllug.org.uk/mailman/listinfo/gllug




More information about the GLLUG mailing list