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