Beefy Boxes and Bandwidth Generously Provided by pair Networks
"be consistent"
 
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;

Replies are listed 'Best First'.
(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?
[LanX]: weekend ... and waiting that chacellor choroba finally catches up ;-p
LanX last weekend or the one before (???)
choroba needs more questions to provide answers to
jedikaiti looked at last hour of CB, saw "boos" but read "boobs"
[Discipulus]: 2 weekends ago LanX
[Lotus1]: cb is nsfw this morning

How do I use this? | Other CB clients
Other Users?
Others chilling in the Monastery: (6)
As of 2017-09-20 15:56 GMT
Sections?
Information?
Find Nodes?
Leftovers?
    Voting Booth?
    During the recent solar eclipse, I:









    Results (237 votes). Check out past polls.

    Notices?