my $len = map $_, $str =~ /(.)/gs; [download]
In reply to Re (tilly) 1: Counting number of characters in a string by tilly in thread Counting number of characters in a string by jeffpflueger