instead of:print scalar @Chars;
Then you won't modify the array size.print ++$#Chars;
In reply to (sacked: don't modify array size) Re: Re: Counting number of characters in a string
by sacked
in thread Counting number of characters in a string
by jeffpflueger
| For: | Use: | ||
| & | & | ||
| < | < | ||
| > | > | ||
| [ | [ | ||
| ] | ] |