Francesco del Vecchio wrote: > Sorry for boring you, but even copying and pasting the source you gave me I obtain > the same error > :-(( > > Any help? > > Francesco
Get rid of the "\r"s. Dont try to do too many things at once. Just print the header fist, on one line. That is one job. Then bear in mind that CGI is used to provide content for Web browsers, which use html as their formatting language. The Hello World that you used was a console version. View Source on a web page, and you will see the formatting tags used in that medium. Let's construct the CGI version for viewing on the Web. The simple text line will show up on a browser, if the Content-type has been set and followed by an empty line. Still it is better to add at least a title: print <<END_HEADER Content-type: text/html <html> <head> <title> Fransesco del Vechio's First CGI Page </title> </head> END_HEADER And to indicate to the browser how you want your single line to appear: as a paragraph of simple proportional text: print <<END_BODY <body> <p> Hello, World! </p> </body> </html> END_BODY as a large headlineline: print <<END_BODY <body> <h1> Hello, World! </h1> </body> </html> END_BODY as a smaller headlineline: print <<END_BODY <body> <h3> Hello, World! </h3> </body> </html> END_BODY As a carefully spaced block of text to be printed as spaced [HTML ignores all white space in the source by default]: as a large headlineline: print <<END_BODY <body> <pre> Hello, World! </pre> </body> </html> END_BODY Or use the CGI module to generate you html. Joseph -- To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]