in reply to Re: Extracting field information from a GenBank file.
in thread Extracting field information from a GenBank file.

A couple of comments on your code:

Most of it is clearly a matter of taste but it feels more direct to me this way:

use strict; use autodie; open my $fh, '<', 'fluseq.txt'; my @tmp = do {local $/='ORIGIN'; <$fh>}; my $dna = pop @tmp; $dna =~ s/[^acgt]//gi; # delete all but a, c, g, and t print $dna;