I presume you are calling it from a web browser interface. The screen will
be blank because you are missing the Content-type: text/html tag.

Try changing the script to...

print "Content-Type: text/html\n";
print "\n";  # <--- blank line needed before html doc
print "Hello world!\n";

Then see what happens.


-----Original Message-----
From: [EMAIL PROTECTED]
[mailto:[EMAIL PROTECTED] On Behalf Of Jerry
Bogren
Sent: Thursday, September 29, 2005 11:21 AM
To: [email protected]
Subject: Windows 2003 and active perl build813

I recently rebuild our student web server upgrading to Windows 2003( App
server) and Active perl build 813.
Perl is running and I can run this script just fine: File name: test1.pl

$url = "http://$ENV{SERVER_NAME}$ENV{URL}";;
$ip = "$ENV{REMOTE_ADDR}";
print <<ENDOFTEXT;
HTTP/1.0 200 OK
Content-Type: text/html

<HTML>
<HEAD><TITLE>Hello World!</TITLE></HEAD>
<BODY>
<H4>Hello World!</H4>
<P>You have reached <a href="$url">$url</a></P>
<P>Your IP Address is $ip</P>
<H4>Have a nice day!</H4>
If the Riverland URL and your IP show above Perl is working.<br><br>
The back button will return you to the main page.<br>
</BODY>
</HTML>
ENDOFTEXT
exit(0);


But this basic script: File Name test2.pl

print "Hello, world!\n";  

Produces a blank screen * I know this used to work but
.......................... why not now.

I am not a perl scripter and niether is the instructor so we have no clue.

Thanks  


_______________________________________________
ActivePerl mailing list
[email protected]
To unsubscribe: http://listserv.ActiveState.com/mailman/mysubs
_______________________________________________
ActivePerl mailing list
[email protected]
To unsubscribe: http://listserv.ActiveState.com/mailman/mysubs

Reply via email to