Executing Perl CGI scripts with CGIHTTPServer

Hamish Lawson hamish_lawson at yahoo.co.uk
Tue Sep 18 13:29:01 EDT 2001


> Joonas Paalasmaa wrote:
> > 
> > How can I use non-Python scripts with CGIHTTPServer.
> > I would like use Python, but in this case I really must use Perl.
> 
> Strange. Perl scripts doesn't work on windows but does work on linux.
> I think that this is some kind of os.fork issue.

I suspect instead that it's because the #! line at the start of the
script is used by your Linux shell to determine what interpreter to
run (in this case Perl), while the Windows shell will be relying on
the file extension. Is the script's extension associated with the Perl
interpreter?

Hamish Lawson



More information about the Python-list mailing list