in reply to perl - html

Your script works for me as it is, so it sounds like you have a configuration issue with your web server.

Have you checked to see if there's any output at all? Are you getting an error instead of the page you expected? Does the web server log anything pertaining to the request?

As a side note, not that this has anything to do with your problem, you should consider using the CGI module instead of printing the raw header + html yourself.

Replies are listed 'Best First'.
Re^2: perl - html
by Anonymous Monk on Jul 11, 2006 at 06:08 UTC
    Hi Thank you
    "Content-type: text/html <html><head><title>Hello World</title></head> <body> <h2>Hello, world!</h2> </body></html>
    This was my output which i have got in command line. its not comming in the webpage.

      Hi,

      The output of your script is fine. The problem is that your web server is not executing the script properly when you access the page. Can you provide more information such as looking at the webserver logs? Have you successfully run other CGI scripts? Is the script set to executable as McDarren suggested? Are you getting any errors?