I have a number of cgi scripts running in a Linux environment.  First line of
all such, for apache/unix, is:
   #!/usr/bin/perl   
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
includes /perl/bin).

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
platforms).  


=============== 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 ================================
#!perl
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>";

Reply via email to