title: How can I resolve error: no such file or directory
body: <p>I am trying to read a FASTA file using perl and I want to put each header as the key and each sequence as the value into hash. I wrote my codes but I got error: no such file  or directory
  I have my fasta file and perl file in the same directory.</p>
  
  <p>here is my code</p>
  
  <pre><code>#!/usr/bin/perl
  use strict;
  
  my $file = "chicken.fa";
  open (my $READ, "&lt;$file") || die "Cannot open $file: $!.\n";
  
  my %seqs = ();
  my $header = '';
  
  while (&lt;$READ&gt;){
      my $line = $_;
      chomp($line);
      if ($line eq "") { next; }
      if ($line =~ /^&gt;.+/){
          $line = $header;
      } else {
          $seqs{"$header"} .= $line;
      }
  }
  close ($READ);
  </code></pre>