<?xml version="1.0" encoding="windows-1252"?>
<node id="20590" title="How to flush output to the console?" created="2000-06-30 14:05:35" updated="2005-08-14 11:10:04">
<type id="1857">
categorized question</type>
<author id="11732">
QandAEditors</author>
<data>
<field name="doctext">
&lt;p&gt;
I have a loop which processes a very large list of items.
For each item it processes, it prints a dot to stdout (the console).
However, instead of watching my "line of dots" growing until the last item is done, 
all of the items get processed and &lt;i&gt;then&lt;/i&gt; I see all the dots appearing at once. 
Is there an equivalent to C's flush() function for Perl ?
&lt;p&gt;
</field>
<field name="parent_node">
2661</field>
<field name="reputation">
7</field>
</data>
</node>
