in reply to shebang line

perl will only check for shebangs containing a -T flag. It will only check a comment on the very first line it parses, so not in modules or on the second line etcetera.
If you have a shebang using -T, perl will die stating Too late for "-T" option at foo line 1. if you run perl yourself (perl foo.pl).

2;0 juerd@ouranos:~$ perl -e'undef christmas' Segmentation fault 2;139 juerd@ouranos:~$

Replies are listed 'Best First'.
Re (tilly) 2: shebang line
by tilly (Archbishop) on Jan 07, 2002 at 17:57 UTC
    Perl doesn't just look for -T.

    As documented in perlrun, Perl will look for its various command line flags on the #! line. It will die for -T because at the point where it is reading the command line it is too late for it to switch into taint-mode. Most others will work just fine.

    UPDATE</b
    Also Perl has a few other tricks up its sleeve. For people on very old Unix systems without a #! line, you can use perl as your shell and it will work. To see this in action try running the following with Perl:

    #! /bin/sh echo Just another Perl hacker,