in reply to it should be simple enough...

I also suggest that you read about the split() function. The default split uses /\s+/. Basically that means that when a sequence of one or more "whitespace" characters are found, they are thrown away and the token to that point is returned. Your split is highly unlikely to return anything of interest.
my @genpepts = split(/^\w{5}/,$in);
Probably is not going to do what you want.

You seem to be describing a file like:

LOCAL asrdf asfd afd asdf aafd qwer qwer qre qwre qrew // LOCAL asrdf asfd afd asdf aafd qwer qwer qre qwre qrew //
I doubt that this is what you actually have.

use split() when you know what to throw away.
use match global when you know what you want to keep.

Replies are listed 'Best First'.
A reply falls below the community's threshold of quality. You may see it by logging in.