http://qs321.pair.com?node_id=629295


in reply to Re^2: Split a string based on change of character
in thread Split a string based on change of character

I never thought of
grep $i=!$i,
before. I usually use
grep $i^=$i,

Yours is easier to understand, though.

Update: Yeah, I mean grep $i^=1,.