Please use the list for postings. That way, everybody gets to see your post. I am responding via the list.
On Sep 15, 2012, at 4:49 PM, jmrhide-p...@yahoo.com wrote: > OK, interesting supposition that needs to be tested. I could just replace > every while (1) with a for (1..10) as insurance, but I'm interested in > knowing if a particular instance of while (1) is the problem. How would you > suggest I could trap that error? You can use the CGI::Carp module to write error messages to the HTML output page: use CGI::Carp qw( fatalsToBrowser ); and then use a loop of the form for my $i ( 1..10 ) { … # your code die("Loop 17 did not complete") if $i >= 10; } That will put an error message into your output page. If you are not the one triggering the error, then you will not see the message. If you want to see anybody's message, you can open a file for logging error messages and write to it within your program when an error occurs. Where you open the log file depends upon your server environment. -- To unsubscribe, e-mail: beginners-unsubscr...@perl.org For additional commands, e-mail: beginners-h...@perl.org http://learn.perl.org/