Beefy Boxes and Bandwidth Generously Provided by pair Networks
good chemistry is complicated,
and a little bit messy -LW
 
PerlMonks  

Answer: How do I find the length of a string?

( #1972=categorized answer: print w/ replies, xml ) Need Help??

Q&A > strings > How do I find the length of a string? contributed by vroom

length($string) returns the number of characters in a string.
$foo = "quux"; $foolen = length $foo; # in this case, 4

Comment on Answer: How do I find the length of a string?
Download Code
Log In?
Username:
Password:

What's my password?
Create A New User
Chatterbox?
and the web crawler heard nothing...

How do I use this? | Other CB clients
Other Users?
Others imbibing at the Monastery: (10)
As of 2015-08-31 13:45 GMT
Sections?
Information?
Find Nodes?
Leftovers?
    Voting Booth?

    The oldest computer book still on my shelves (or on my digital media) is ...













    Results (357 votes), past polls