title: Perl DBI - Capturing errors
body: <p>What's the best way of capturing any DBI errors in Perl? For example if an insert fails because there were illegal characters in the values being inserted, how can I not have the script fail, but capture the error and handle it appropriately.</p>
  
  <p>I don't want to do the "or die" because I don't want to stop execution of the script.</p>