<?xml version="1.0" encoding="windows-1252"?>
<node id="1020750" title="Re: uninitialized error" created="2013-02-26 14:52:04" updated="2013-02-26 14:52:04">
<type id="11">
note</type>
<author id="616540">
moritz</author>
<data>
<field name="doctext">
&lt;p&gt;My guess is that a few of the input rows are simply not of the same syntax as the others (or some values are missing).

&lt;p&gt;From your quite long post I didn't quite understand which value is undefined, but if you have identified it, do something like

&lt;code&gt;
use Data::Dumper;
$Data::Dumper::Useqq = 1;
# and then in the loop:
    unless (defined $value_that_is_sometimes_undefined) {
         print STDERR Dumper($whole_line);
    }
&lt;/code&gt;

&lt;p&gt;to see if the input line is still what you thought it was.
&lt;!-- Node text goes above. Div tags should contain sig only --&gt;
&lt;div class="pmsig"&gt;&lt;div class="pmsig-616540"&gt;
[http://perl6.org/|Perl 6 - the future is here, just unevenly distributed]
&lt;/div&gt;&lt;/div&gt;</field>
<field name="root_node">
1020745</field>
<field name="parent_node">
1020745</field>
</data>
</node>
