in reply to Re^2: cleaving a sequence with specific alphabets
in thread cleaving a sequence with specific alphabets
You won't need capturing parentheses when evaluating in list context. Afaik does the .*? invoke a speed penalty, so that the expression might be optimized as:
... my @arr = $string =~ / [^KR]+ # collect non K|R . # the following must be K|R (?!P) # ignore if fragment would start by P /gsx; ...
Regards
mwa
|
---|
Replies are listed 'Best First'. | |
---|---|
Re^4: cleaving a sequence with specific alphabets
by tachyon-II (Chaplain) on May 21, 2008 at 16:30 UTC | |
by ikegami (Patriarch) on May 21, 2008 at 17:00 UTC | |
by mwah (Hermit) on May 21, 2008 at 17:21 UTC | |
by tachyon-II (Chaplain) on May 22, 2008 at 00:04 UTC |
In Section
Seekers of Perl Wisdom