<?xml version="1.0" encoding="windows-1252"?>
<node id="991332" title="Re^13: Help with pushing into a hash" created="2012-09-02 18:17:44" updated="2012-09-02 18:17:44">
<type id="11">
note</type>
<author id="965102">
Kenosis</author>
<data>
<field name="doctext">
&lt;p&gt;Hi, jemswira!&lt;/p&gt;

&lt;p&gt;This is no bother at all!&lt;/p&gt;

&lt;p&gt;You mentioned that the following captured a key that wasn't in the final set:&lt;/p&gt;
&lt;c&gt;
next unless /(E7F888)\s+.+=([^\s]+)/;
 push @activline, "$1 | $2 | $activ{$1} \n" if $activ{$1};

print @activline;
&lt;/c&gt;
&lt;p&gt;Try the following:&lt;/p&gt;
&lt;c&gt;
next unless /(E7F888)\s+.+=([^\s]+)/;
say;
exit;
&lt;/c&gt;
&lt;p&gt;&lt;c&gt;say&lt;/c&gt;will print the scalar &lt;c&gt;$_&lt;/c&gt; which the regex operates on.  By doing this, you can examine the line to verify that the matches the following regex:&lt;/p&gt;
&lt;c&gt;
/(.{6})\s+.+=([^\s]+)/
&lt;/c&gt;
&lt;p&gt;Also, it may be that the 'key' is not being captured from $activin, since:&lt;/p&gt;
&lt;c&gt;
push @activline, "$1 | $2 | $activ{$1} \n" if $activ{$1};
&lt;/c&gt;
&lt;p&gt;will work only if the 'key' if found in both files and the regexs which process both work as they should.&lt;/p&gt;
&lt;p&gt;Let me know what you find...&lt;/p&gt;
</field>
<field name="root_node">
990508</field>
<field name="parent_node">
991239</field>
</data>
</node>
