sub splitSameChars { for( shift @_ ) { push @_, $1 while /((.)\2*)/g; } @_; }
- tye
In reply to Re: Elegant way to split into sequences of identical chars? (while //g)
by tye
in thread Elegant way to split into sequences of identical chars?
by pKai
For: | Use: | ||
& | & | ||
< | < | ||
> | > | ||
[ | [ | ||
] | ] |