<?xml version="1.0" encoding="windows-1252"?>
<node id="266929" title="Re: Slurping BIG files into Hashes" created="2003-06-18 13:51:56" updated="2004-10-09 21:01:36">
<type id="11">
note</type>
<author id="7756">
cciulla</author>
<data>
<field name="doctext">
&lt;p&gt;
I'd be tempted to do it thusly, &lt;strike&gt;as it appears that you're throwng away the value part&lt;/strike&gt;:
&lt;code&gt;
while (&lt;config&gt;) {
    chomp;
    my ($key, $value) = /^(.{1,13})(.+)$/;
    $lookup{$key} = $value;
}
&lt;/code&gt;
...or, am I missing something?
&lt;/p&gt;
&lt;p&gt;
&lt;b&gt;Update: &lt;/b&gt; &lt;code&gt;perldoc -f substr&lt;/code&gt; has shown me the light.
&lt;br&gt;
&lt;b&gt;Update the Second: &lt;/b&gt; As has [hardburn].
&lt;/p&gt;
&lt;p&gt;
Cē
&lt;/p&gt;</field>
<field name="root_node">
266924</field>
<field name="parent_node">
266924</field>
</data>
</node>
