Beefy Boxes and Bandwidth Generously Provided by pair Networks
XP is just a number
 
PerlMonks  

Re^3: .pl or shebang

by Burak (Chaplain)
on May 15, 2009 at 09:30 UTC ( [id://764224]=note: print w/replies, xml ) Need Help??


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;" ō

Log In?
Username:
Password:

What's my password?
Create A New User
Domain Nodelet?
Node Status?
node history
Node Type: note [id://764224]
help
Chatterbox?
and the web crawler heard nothing...

How do I use this?Last hourOther CB clients
Other Users?
Others having an uproarious good time at the Monastery: (6)
As of 2024-04-16 05:58 GMT
Sections?
Information?
Find Nodes?
Leftovers?
    Voting Booth?

    No recent polls found