in reply to Re^2: Parse DNA fasta file
in thread Parse DNA fasta file

Check the return value from the constructor invocations and see what that tells you:

my $in = Bio::SeqIO->new(-file => "test.fa" , '-format' => 'Fasta') or die "Failed to open input file: $!";

Examine what is said, not who speaks -- Silence betokens consent -- Love the truth but pardon error.
"Science is about questioning the status quo. Questioning authority".
In the absence of evidence, opinion is indistinguishable from prejudice.
RIP PCW It is as I've been saying!(Audio until 20090817)