http://www.perlmonks.org?node_id=421269


in reply to Genbank file parsing

Untested:
while (<FILE>) { $features = $1, next if /FEATURES\s+(\w+)/; $count = $1, next if /COUNT\s+(\w+)/; push @seq, $1 if /^ORIGIN/ .. m!//!; }