Kerr, Apache spawns a child for each web connection, while doing this, if a cgi script is called, it pulls a copy of the script into memory, executes it. Ways to debug: Yes Apache does have an error log, search your httpd.conf for "ErrorLog". That like specifies where Apache will write any errors including errors returned from perl. If you use tail -f /var/logs/error_log (of course replace that with where your error log is), you will be able to watch the log incase any errors pop up. This is very very useful while developing. Other methods tricks are print STDERR "\$var = $var\n"; This way you can get the values of certain variables when ever they are in question. If you want it to be easier to see and your script is not live, you could even simply print your values to STDOUT (print uses this by default so simply print "stuff" would do this). Keep in mind, if you have not printed a content-type before attempting to print some debug to the browser client, you will get an Internal Server Error. If you are getting an Internal Server Error and you know that you are printing a valid content-type, this means there are probably other errors in your script (usually syntax). Watch the error log for these.
Good Luck, David ----- Original Message ----- From: "Kerr Wall" <[EMAIL PROTECTED]> To: <[EMAIL PROTECTED]> Sent: Tuesday, July 16, 2002 10:53 AM Subject: Couple of newbie questions Hi All, I am currently switching to Perl/CGI from the Java servlet world. I'm wishing I would have made this switch a long time ago and I have a couple of questions: How does perl handle multiple requests. For example, if 10 users are logged into your system and they are all trying to use the same script, how does perl deal with this situation? What is the best way to test and debug? I am use to printing to the console with Java and I'm not sure how I do this with perl. Does apache have a log file that I can write to and how to I keep track of when I want to print the response or print to stdout/log file? Thanks, Kerr Wall -- 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]