in reply to Re: How do i use regexes in one file to match FASTA sequences in another file
in thread How do i use regexes in one file to match FASTA sequences in another file

Nice logic to share with OP. Consider, however, adding use warnings; use autodie;, the latter to handle open errors.