Beefy Boxes and Bandwidth Generously Provided by pair Networks
Pathologically Eclectic Rubbish Lister
 
PerlMonks  

(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 ( #64218=note: print w/ replies, xml ) Need Help??


in reply to Re: Counting number of characters in a string
in thread Counting number of characters in a string

How about:

print scalar @Chars;
instead of:
print ++$#Chars;
Then you won't modify the array size.

--sacked


Comment on (sacked: don't modify array size) Re: Re: Counting number of characters in a string
Select or Download Code

Log In?
Username:
Password:

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

How do I use this? | Other CB clients
Other Users?
Others examining the Monastery: (4)
As of 2016-02-14 20:01 GMT
Sections?
Information?
Find Nodes?
Leftovers?
    Voting Booth?

    How many photographs, souvenirs, artworks, trophies or other decorative objects are displayed in your home?





    Results (470 votes), past polls