title: How do I test for an exception type in perl?
body: <p>How can I check what kind of exception caused the script or <code>eval</code> block to terminate?
  I need to know the type of error, and where the exception occurred.</p>