perl -le '/$c/||$i++, $d[$i].=$c=$_ for split "","aaaabbbccdaaa"; prin +t "@d"' aaaa bbb cc d aaa
In reply to Re: Elegant way to split into sequences of identical chars?
by ivancho
in thread Elegant way to split into sequences of identical chars?
by pKai
| For: | Use: | ||
| & | & | ||
| < | < | ||
| > | > | ||
| [ | [ | ||
| ] | ] |