To get Perl scripts to work with PWS: 1. Install Perl (of course) 2. Use PWS to flag the cgi-bin folder (or whatever folder you use for your scripts) as executable. 3. Make sure that the following string values exist in the registry at the indicated key: [HKEY_LOCAL_MACHINE\System\CurrentControlSet\Services\W3SVC\Parameters\Scrip t Map] .pl=c:\perl\bin\perl.exe %s %s .cgi=c:\perl\bin\perlis.dll
This will map cgi files to perlIS and pl files to perl.exe. Why would you want to do this? Well, you can debug using a pl file (errors sent to the browser), then rename to cgi for production (errors sent to log file in C:\Perl\bin). The config's a bit different for IIS4 and higher. Brian (who's been using Perl with PWS for as long as he can remember - Apache? ptui! :-) ----- Original Message ----- From: "$Bill Luebkert" <[EMAIL PROTECTED]> To: "Perl Users" <[EMAIL PROTECTED]> Sent: Thursday, August 15, 2002 3:33 PM Subject: Re: Getting cgis to work > Scot Robnett wrote: > > On Windows, the shebang line > > is almost a frivolity - as long as the script has a .pl or .cgi extension > > (and you have .cgi associated with perl.exe), it should run. I'm not > > suggesting to get rid of that line, because it would be bad style - but > > Win32 doesn't really care about it. > > It's not Windoze per se, it's because PWS and IIS don't use the shebang line to > find the Perl exe - they use the file ext (.pl/.cgi) to find the associated > application. > > Apache and many Win32 shells *do* use the shebang line as does Perl itself > to pick up the switches. > > -- > ,-/- __ _ _ $Bill Luebkert ICQ=162126130 > (_/ / ) // // DBE Collectibles Mailto:[EMAIL PROTECTED] > / ) /--< o // // http://dbecoll.tripod.com/ (Free site for Perl) > -/-' /___/_<_</_</_ Castle of Medieval Myth & Magic http://www.todbe.com/ > > _______________________________________________ > Perl-Win32-Users mailing list > [EMAIL PROTECTED] > To unsubscribe: http://listserv.ActiveState.com/mailman/mysubs _______________________________________________ Perl-Win32-Users mailing list [EMAIL PROTECTED] To unsubscribe: http://listserv.ActiveState.com/mailman/mysubs