<?xml version="1.0" encoding="windows-1252"?>
<node id="1008074" title="Re^3: error in printing output of Data::Dumper to file" created="2012-12-10 03:30:59" updated="2012-12-10 03:30:59">
<type id="11">
note</type>
<author id="576594">
quester</author>
<data>
<field name="doctext">
&lt;p&gt;Oh. The file is being written to, but you can't read it because it was opened for append but not read (mode "&gt;&gt;" instead of "+&gt;&gt;"), and also because, due again to the append access, it is already positioned to the end of file when you do the first read.&lt;/p&gt;
&lt;p&gt;If you change the open mode from "&gt;&gt;" to "+&gt;&gt;", and  insert &lt;c&gt;  seek FH5, 0, 0 or die "Seek failed, $!"; &lt;/c&gt; just before &lt;c&gt; while (&lt;FH5&gt;) &lt;/c&gt; it should work.&lt;/p&gt;
&lt;p&gt;Another way would be to close FH5 and then reopen it for input (mode "&lt;") just before trying to read it.&lt;/p&gt;</field>
<field name="root_node">
1008056</field>
<field name="parent_node">
1008063</field>
</data>
</node>
