sithsasquatch has asked for the wisdom of the Perl Monks concerning the following question:

Hi. I've googled this to Hell and back. I'm running the latest install of Activestate Perl (5.8.7.813). Microsoft IIS (6.0) has been configured to recognize .pl and .plx extensions and run them with the Perl interpreter.

The problem is that I would like to run the Perl scripts in taint mode. Since this is not a Unix server, adding -T to the shebang line doesn't seem to work. Every tutorial page says to change the associations so that IIS runs taint mode Perl . . . but doesn't explain how to accomplish this.

I know how to change associations, rename extensions and such. However, what do I change the associated filename/path to? (For non-taint Perl, the filename/path is set to C:\Perl\bin\perl.exe "%s" %s. This path was set automagically during the Perl installation.)

Thank you for your help.
SithSasquatch
  • Comment on How do I use taint mode with Windows Server 2003? (Other than shebang line)

Replies are listed 'Best First'.
Re: How do I use taint mode with Windows Server 2003? (Other than shebang line)
by Tanktalus (Canon) on Jul 08, 2005 at 22:25 UTC

    You should be able to put your -T in after "perl.exe" and before the quoted %s, e.g., C:\Perl\bin\perl.exe -T "%s" %s wherever you find that in the registry.

Re: How do I use taint mode with Windows Server 2003? (Other than shebang line)
by Enlil (Parson) on Jul 08, 2005 at 22:25 UTC
      Thank you all for your help.

      I ran a "super search" earlier that came up empty. Guess I should've searched for IIS instead of the OS.

      Thanks again!
Re: How do I use taint mode with Windows Server 2003? (Other than shebang line)
by gellyfish (Monsignor) on Jul 13, 2005 at 19:31 UTC

    As well as the local resources already cited you might want to look at this item in the NMS FAQ which explains the situation quite clearly.

    /J\