in reply to Re^2: Read FASTA into Hash
in thread Read FASTA into Hash

Yes, your method works as long as your input conforms to your specification (a simple subset of the FASTA format).
Bill