title: Unable store all the outputs to array in Perl
body: <p>I am reading the lines from a file and input it to commands.</p>
  
  <pre><code>open my $handle, '&lt;', $path_to_file;
  foreach  $line (&lt;$handle&gt;) {
    my @output  = `cmd`;
  </code></pre>
  
  <p>I want to store each output to array. But unable to store it , it overwrites the previous value</p>