in reply to Puzzlement in Splitsville

If you have a brief alphabet (intimated by your earlier example using just actg), this is easy:
print join " ", "aaabbcddddaee" =~ /(a+|b+|c+|d+|e+)/g