Important Notice: Our web hosting provider recently started charging us for additional visits, which was unexpected. In response, we're seeking donations. Depending on the situation, we may explore different monetization options for our Community and Expert Contributors. It's crucial to provide more returns for their expertise and offer more Expert Validated Answers or AI Validated Answers. Learn more about our hosting issue here.

How does my script know if its running under Perl for Win32 or PerlIS?

Perl perlis running Script Win32
0
Posted

How does my script know if its running under Perl for Win32 or PerlIS?

0

PerlIS sets an environment variable, PERLXS, for scripts that are executed under PerlIS. The following script will run as a perl.exe CGI script or as a PerlIS script. It checks the environment variable to see if it needs to print out a status line. print “HTTP/1.0 200 OK\r\n” if $ENV{PERLXS} eq “PerlIS”; print <<"END"; Content-Type: text/htm Both This script will work with perl.exe and PerlIS.

0

PerlIS sets an environment variable, PERLXS, for scripts that are executed under PerlIS. The following script will run as a perl.exe CGI script or as a PerlIS script. It checks the environment variable to see if it needs to print out a status line. print “HTTP/1.0 200 OK\r\n” if $ENV{PERLXS} eq “PerlIS”; print <<"END"; Content-Type: text/html Both This script will work with perl.exe and PerlIS. END 7.6. What CGI modules run with Perl for Win32? The CGI.pm module works with Perl for Win32. It’s available at http://www-genome.wi.mit.edu/ftp/pub/software/WWW/cgi_docs.html Note that you need to change the $OS variable in CGI.pm before it will work correctly with Windows NT or Windows 95. [Any other CGI modules work with Perl for Win32? -ESP] 7.7. How do I use redirection in my script? You can use redirection to point the client browser to another file or script, usually in a way that’s invisible to the user. It requires using the

Related Questions

What is your question?

*Sadly, we had to bring back ads too. Hopefully more targeted.

Experts123