title: Which one is good practice, a lexical filehandle or a typeglob?
body: <p>Some say we should use a lexical filehandle instead of a typeglob, like this:</p>
  
  <pre><code>open $fh, $filename;
  </code></pre>
  
  <p>But most Perl books, including <a href="https://rads.stackoverflow.com/amzn/click/com/0596520107" rel="noreferrer" rel="nofollow noreferrer">The Llama Book</a>, use a typeglob, like this:</p>
  
  <pre><code>open LOGFILE, $filename;
  </code></pre>
  
  <p>So what are the differences? Which one is considered a better practice?</p>