in reply to string manipulation
my $newString = join ', ', map length, split /1+/, $string; [download]