title: Refreshing line reading operator Perl
body: <p>what happens after the eof is reached with &lt;> operator in perl?</p>
  
  <p>I'm reading INP1 line by line with</p>
  
  <pre><code>while(&lt;INP1&gt;) {
  }
  </code></pre>
  
  <p>but I need to do this reading multiple times and I need to start from the beginning of the file each time. How can I do that? Is there something like refreshing the stream in perl?</p>
  
  <p>Thanks in advance.</p>