in reply to 'grouping' substrings?
This gives me different values than you've shown, but I believe it's correct.my $seq = "..."; my @groups; push @groups, [$-[0], $+[0]] while $seq =~ /M+/g; print "$_->[0] to $_->[1]\n" for @groups;
|
|---|
| Replies are listed 'Best First'. | |
|---|---|
|
Re^2: 'grouping' substrings?
by Anonymous Monk on Feb 01, 2006 at 16:15 UTC | |
by Anonymous Monk on Feb 01, 2006 at 16:21 UTC | |
by kwaping (Priest) on Feb 01, 2006 at 16:25 UTC | |
by ikegami (Patriarch) on Feb 01, 2006 at 17:02 UTC | |
by ikegami (Patriarch) on Feb 01, 2006 at 17:04 UTC |