title: Difference between $var = <FH> and $_ in Perl
body: <p>Recently I came across something like this in a certain perl script:</p>
  
  <pre><code>while(&lt;FH&gt;){
      $var1 = &lt;FH&gt;; $var2 = $_
  }
  </code></pre>
  
  <p>Since the diamond operator with file handle name inside works the same way as <code>readline(FH)</code>; may I know are there any special meaning in writing like this?</p>
  
  <p>Thanks a lot</p>