What strlen() cannot do is count�ng the number of *characters* in a string. But who cares? I can imagine very few situations where someone such an information would be useful.
#!/usr/bin/perl print "ab, \x{aaaa}\x{aaab}" ; printf "\n%s, %s", length "ab" , length "\x{aaaa}\x{aaab}" ;
ab, ́�́� 2, 2

