Beefy Boxes and Bandwidth Generously Provided by pair Networks
No such thing as a small change
 
PerlMonks  

Re: Counting number of characters in a string

by dfog (Scribe)
on Mar 14, 2001 at 01:05 UTC ( #64210=note: print w/ replies, xml ) Need Help??


in reply to Counting number of characters in a string

my $String = "This is the way I do it"; my @Chars = split("", $String); print ++$#Chars;


Comment on Re: Counting number of characters in a string
Download Code
(sacked: don't modify array size) Re: Re: Counting number of characters in a string
by sacked (Hermit) on Mar 14, 2001 at 01:28 UTC

Log In?
Username:
Password:

What's my password?
Create A New User
Node Status?
node history
Node Type: note [id://64210]
help
Chatterbox?
and the web crawler heard nothing...

How do I use this? | Other CB clients
Other Users?
Others rifling through the Monastery: (17)
As of 2014-07-24 16:39 GMT
Sections?
Information?
Find Nodes?
Leftovers?
    Voting Booth?

    My favorite superfluous repetitious redundant duplicative phrase is:









    Results (162 votes), past polls