It depends how is set the web server to execute the programs that will process the CGI scripts. By default Apache is set to need the shebang line and it doesn't use the registry settings, but this can be changed.
...and you don't need to print the HTML header in the BEGIN {} block. You can just print it at the top of the perl program or in the middle of the program but before anything else is printed. Teddy, Teddy's Center: http://teddy.fcc.ro/ Email: [EMAIL PROTECTED] ----- Original Message ----- From: "Jonathan Hogue" <[EMAIL PROTECTED]> To: "Mike Harrison" <[EMAIL PROTECTED]>; "'Andrew Brosnan'" <[EMAIL PROTECTED]>; "Mike Harrison" <[EMAIL PROTECTED]> Cc: <[EMAIL PROTECTED]> Sent: Tuesday, August 05, 2003 4:21 AM Subject: RE: Perl line breaks >2. My first line in the perl program is: #!perl -w (being a Windows-based >server, it doesn't require the full path. The -w to warn of errors/mistakes >etc.) I think in Windows, -w isn't enough. The #!perl line is ignored in most windows installations/configurations , and the file association is used instead. Therefore, you should do this explicately. use warnings; Also, with some webservers doing the following as your first line in the script will catch almost all errors. (Works in IPlanet, but not Apache. Not sure about Windows) BEGIN { print "Content-Type: Text/HTML\n\n"; } -- To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED] -- To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]