Q&A > strings > How do I find the length of a string? - Answer contributed by vroom
$foo = "quux";
$foolen = length $foo; # in this case, 4
Yes, I watch meteor showers
No, I do not watch meteor showers
My meteors prefer to bathe
Results (190 votes). Check out past polls.