<?xml version="1.0" encoding="windows-1252"?>
<node id="64218" title="(sacked: don't modify array size) Re: Re: Counting number of characters in a string" created="2001-03-13 20:28:25" updated="2005-08-11 11:21:39">
<type id="11">
note</type>
<author id="18131">
sacked</author>
<data>
<field name="doctext">
How about:

&lt;CODE&gt;
print scalar @Chars;
&lt;/CODE&gt;

instead of:

&lt;CODE&gt;
print ++$#Chars;
&lt;/CODE&gt;

Then you won't modify the array size.

&lt;BR&gt;&lt;BR&gt;
--&lt;a href="/index.pl?node=sacked"&gt;sacked&lt;/a&gt;</field>
<field name="root_node">
63955</field>
<field name="parent_node">
64210</field>
</data>
</node>
