Josimar,
 
Great! It works as you said.
 
Thx a lot,
 
Justin


Note: forwarded message attached.


Xiangli Zhang (Justin)
306-310 Decaire Street, Coquitlam
BC, Canada, V3K 6X1
phone: 604-9399181

Do you Yahoo!?
Yahoo! Mail - More reliable, more storage, less spam

--- Begin Message ---
Hi, Justin
 
I tested the script and it worked fine in Fedora Core 1 with Apache 2.0 and Windows IIS too.
 
The mistake is the place where you put the file.
 
Using Linux, put the code in /var/www/cgi-bin/ and give it permission 755 (chmod 755 script.pl).
 
Then, try http://localhost/cgi-bin/script.pl in a browser.
 
Good Luck,
 
Josimar
----- Original Message -----
Sent: Thursday, March 18, 2004 5:22 PM
Subject: Fwd: Re: HTML problems in perl running

Hi, Josimar:

The followings are the file what I ran, and the result what I got actually.

Thank you for quick response,

Talk to you later,

Justin

 

The file is:
 
#!/usr/bin/perl
use CGI qw/:standard/;
print header(),
      start_html(-title=>'Wow!'),
      h1('Wow!'),
      'Look Ma, no hands!',
      end_html();


The following is the output

Content-Type: text/html; charset=ISO-8859-1

<?xml version="1.0" encoding="iso-8859-1"?>
<!DOCTYPE html
        PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN"
         "
http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
<html xmlns="
http://www.w3.org/1999/xhtml" lang="en-US"
xml:lang="en-US"><head><title>Wow!</title>
</head><body><h1>Wow!</h1>Look Ma, no
hands!</body></html


Note: forwarded message attached.


Xiangli Zhang (Justin)
306-310 Decaire Street, Coquitlam
BC, Canada, V3K 6X1
phone: 604-9099181

Do you Yahoo!?
Yahoo! Mail - More reliable, more storage, less spam


--
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]
<http://learn.perl.org/> <http://learn.perl.org/first-response>

--- End Message ---
-- 
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]
<http://learn.perl.org/> <http://learn.perl.org/first-response>

Reply via email to