Q&A > strings > How do I find the length of a string? contributed by vroom
$foo = "quux";
$foolen = length $foo; # in this case, 4
Frying pan on the stove
Results (337 votes). Check out past polls.