in reply to Re^3: Elegant way to split into sequences of identical chars?
in thread Elegant way to split into sequences of identical chars?
Another curiosity: it is a special feature of m//g that if you don't parenthesize anything, it will return the entire match, so removing the parentheses from your first example changes nothing.
Caution: Contents may have been coded under pressure.
However, removing the outer parentheses from your second example causes a crash on my box (ActiveState 5.8.7).
Caution: Contents may have been coded under pressure.
In Section
Seekers of Perl Wisdom