title: Perl - Reading file lines
body: <p>I'm trying to read the lines on a file with the code below. But the result of this code is to print the same line as lines the document has. </p>
  
  <pre><code>open (file_to_rand, "./files/file07.txt") or die "Could not open file";
  foreach $line (&lt;file_to_rand&gt;) {
      push(@array,$line);
  }
  close(file_to_rand);
  </code></pre>
  
  <p>What is wrong with this code?</p>