Perl does check the shebang line in Windows for commandline switches like -w and -T.
Check your logs, if you are getting a "Too late for option -T" error, Perl is being invoked with the -T already, ie your scripts are associated to perl -T instead of just perl.
TGI says moo
| [reply] |
| [reply] |
My mistake, to be more clear:
1) The -T option is not on the file association.
2) The shebang line has -T
3) This causes a server 500 error with the error "Too late for -T option"
So, is this rectified by adding "-T" to the file association and removing from the shebang line?
Thanks again!
| [reply] |
Okay, I am indeed getting the "Too late for option -T" error.
Now, the file extension is set as .cgi and the file association on the NT box is set for .cgi but there is no -T option among the default execution parameters.
So now that seems to be the problem, anyone else know why it's giving me that error despite the fact that it is not being executed with -T?
| [reply] |
Perl, on windows, does not care what the path to perl is in your #! line, but it will process the switches (-w -T -l -whatever).
So, it is giving you the error (not problem, but error) because it is being executed with -T.
Now some good server, like apache, do care about the path to perl on the #! line, but that is neither here nor there.
___crazyinsomniac_______________________________________
Disclaimer: Don't blame. It came from inside the void
perl -e "$q=$_;map({chr unpack qq;H*;,$_}split(q;;,q*H*));print;$q/$q;"
| [reply] |