<?xml version="1.0" encoding="windows-1252"?>
<node id="966228" title="Re: Letter by letter" created="2012-04-20 14:22:26" updated="2012-04-20 14:22:26">
<type id="11">
note</type>
<author id="892462">
Riales</author>
<data>
<field name="doctext">
&lt;p&gt;Why the sleep after each print? Are you perhaps [http://perl.plover.com/FAQs/Buffering.html|suffering from buffering]?&lt;/p&gt;

&lt;p&gt;If not, my initial thought when I think about printing a string letter by letter would be:&lt;/p&gt;

&lt;code&gt;
$| = 1;
print $_ foreach (split '', $string);
&lt;/code&gt;

&lt;p&gt;&lt;b&gt;Edit:&lt;/b&gt; I took a second look at the code you provided. I'm really not sure I understand what you're trying to do now. The second bit of the for loop is supposed to be a test that tells the loop when to stop, but since you're just assigning to &lt;code&gt;$i&lt;/code&gt;, I'm pretty sure that loop will run forever.&lt;/p&gt;</field>
<field name="root_node">
966227</field>
<field name="parent_node">
966227</field>
</data>
</node>
