in reply to Counting number of characters in a string

{ $str =~ s/./\n/g; local $/ = ""; $len = chomp($str); }