I'm buffering my html/javascript output in a large array of strings. This frees me to perform my computations independently of the order they appear in the output.
However, I have a problem: Let us suppose I have an error from my database and I have not executed "print $q->header( ),start_html(-title => $case_name);"; yet. Is there a way I can throw an exception in my function (that retrieves data from the database) and let the main program have an exception handler that will execute "print $q->header( ),start_html(-title => $case_name);" earlier than normal so I can print my error messages and abort? Thanks, Siegfried -- To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED] <http://learn.perl.org/> <http://learn.perl.org/first-response>