Subject: [htdig] (Off Topic) - use of #!/usr/bin/perl in Windows environment.
Date: Thu Jan 11 2001 - 11:15:36 PST
I have a number of cgi scripts running in a Linux environment. First line of
all such, for apache/unix, is:
Under Apache/Linux, this works as expected.
Just recently installed Apache (1.13) on a Windows 98 machine.
In this environment, perl.exe(5.005_03)resides in /perl/bin.
When I specify #!perl, vice #!/usr/bin/perl, module receives control and
operates as expected. (Which makes sense, since my Win98 path statement
That is minimally workable, but requires that the first line change back and
forth, between the above two values, every time I move the module between
Unix and Windows. (Other than that, combination of bit-identical source
modules and Perl 5.005_03 produce entirely-consistent results on both
=============== dusr.html =================================
<html><head><title>Dummy Cgi Driver</title></head><body>
<form action = "q_time.cgi">
<input type="submit" value = "runnit"></form></body></html>
=============== q_time.cgi ================================
use strict;use Time::local;my $t = time();
print "Content-type: text/html\n\n";
print "<html><head><title>hello world (from q_time.cgi) </title></head>
";print "<body><h2> body time = $t</h2></body></html>";
my $q = localtime($t);print "<br>$q<br>";
This archive was generated by hypermail 2b28 : Thu Jan 11 2001 - 11:30:01 PST