Sam Holden <> wrote:
: On Fri, 14 Nov 2003 02:39:54 GMT, Bob X <> wrote:
:> "Josef Mollers" <> wrote in message
:> news:...
:> joe wrote:
:>>
:>> Can anyone help me out here. I run my CGI-scripts locally on a Windows
:>> machine. In the shebang line I put #!c:\www\Perl.exe, but it's also
:> possible
:>> to use only #!perl. On my virtual webserver at my ISP's Unix machine I
:> have
:>> to use #!/usr/bin/perl.
:>
:>>AFAIK it is irrelevant _what_ command you put into the shebang line on a
:>>windows system. Windows doesn't know shebang lines (it maybe knows a .pl
:>>extension, though), but the perl interpreter knows how to extract
:>>options (e.g. -w) from the shebang line.
:>
:> Actually if you are going to doing web work on Windows then the #!perl is
:> necessary.
: No it isn't. Some web servers may require that, but that's the web server
: not windows.
And, sometimes it varies even within the same web server.
Apache for Windows, for instance, has a way to associate Perl with AS Perl
that doesn't depend on #! pointing anywhere in particular. But, if you
use FastCGI, the #! must be correct.
IIS uses a static mapping of program or ISAPI DLL to extension, so .pl
and .plx are always handled by ActiveState Perl.
Note that Apache's mapping of .pl files and IIS's mapping of .pl files
are entirely different. IIS uses it's own configuration via the IIS MMC,
and Apache uses a registry entry. Or maybe a different registry entry,
depending on your configuration.
Isn't CGI fun?
--
Louis Erickson -
-
http://www.rdwarf.com/~wwonko/
If you're not part of the solution, you're part of the precipitate.