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

"-T" in the file will not work. You have to change the executable path in the registry and add it or call it from the cmdline: "perl -T foo.pl"

Replies are listed 'Best First'.
Re^4: .pl or shebang
by Anonymous Monk on May 15, 2009 at 09:58 UTC
    It will work :)
    C:\>perl #!perl -T -- "-T" is on the #! line, it must also be used on the command line at - +line 1.
      You just showed it not working. -C is another that doesn't work on the shebang.
        No, -T is doing its job. -C is broken.
        C:\>perl #!perl -C -- Unknown Unicode option letter ' ' at - line 1. C:\>perl #perl -C2 -- print chr 333; ^Z Wide character in print at - line 2. ō C:\>perl -C2 -e"print chr 333;" ō