title: What are the best practices for error handling in Perl?
body: <p>I'm learning Perl, and in a lot of the examples I see errors are handled like this</p>
  
  <pre><code>open FILE, "file.txt" or die $!;
  </code></pre>
  
  <p>Is <code>die</code> in the middle of a script really the best way to deal with an error?</p>