in reply to splitting fasta file into individual fasta files
Any ideas?
Yes. You are naming both files the same, so the second overwrites the first.
my $out = Bio::SeqIO->new( -file => ">$file"."_fasta", -format => 'Fasta'); [download]