in reply to Extracting field information from a GenBank file.

Each element of the @data array has a single newline character at the end. And ORIGIN appears on its own line. The //m doesn't do anything because of that.

Tip #2 from the Basic debugging checklist: print and Data::Dumper will help you to see that. See also

  • Comment on Re: Extracting field information from a GenBank file.