in reply to Split a string based on change of character
my $str= "AAABBCCCC";
push @x, $1 while $str =~ /((.)\2*)/g;
Once (shame on you!)
Twice (shame on me!)
More often than I'd like to be
All the time
Just when answering stupid polls
Who you callin' a fool?
I refuse to vote in this ridiculous poll
Results (431 votes). Check out past polls.