What is the best way to catch any DBI errors in Perl? For example, if the insertion fails, because the inserted values ββcontained invalid characters, how can I not execute the script to fail, but fix the error and process it accordingly.
I do not want to do "or die" because I do not want to stop the execution of the script.
exception perl error-handling dbi
Chris
source share