You might find it easier if your consider the file as a long string, one that happens to contain embedded newline characters.
my $data = do {local $/; <DATA>}; my @items = map { { 'name' => $1, 'niceinfo' => $2 } } ($data =~ /^FEATURES(.+?)^ORIGIN(.+?)^\/\//msg);
In reply to Re: Genbank file parsing
by EdwardG
in thread Genbank file parsing
by Anonymous Monk
| For: | Use: | ||
| & | & | ||
| < | < | ||
| > | > | ||
| [ | [ | ||
| ] | ] |