in reply to Elegant way to split into sequences of identical chars?
sub splitSameChars { for( shift @_ ) { push @_, $1 while /((.)\2*)/g; } @_; }
- tye
|
|---|
| Replies are listed 'Best First'. | |
|---|---|
|
Re^2: Elegant way to split into sequences of identical chars? (while //g)
by tphyahoo (Vicar) on Nov 30, 2005 at 15:16 UTC | |
by tye (Sage) on Nov 30, 2005 at 15:50 UTC | |
by tphyahoo (Vicar) on Nov 30, 2005 at 16:01 UTC | |
by tye (Sage) on Nov 30, 2005 at 16:47 UTC |