<?xml version="1.0" encoding="windows-1252"?>
<node id="1010711" title="Re: Stepping through a hash while modifiying its content" created="2012-12-28 09:43:21" updated="2012-12-28 09:43:21">
<type id="11">
note</type>
<author id="1001958">
karlgoethebier</author>
<data>
<field name="doctext">
&lt;p&gt;Perhaps you can do it with &lt;c&gt;List::Pairwise&lt;/c&gt; instead?&lt;/p&gt;
&lt;c&gt;
use List::Pairwise qw(grepp);
# grep hash subset
    my %subset1 = grepp {$a =~ /^ba/} %hash;
    my %subset2 = grepp {$b &lt; 5} %hash;
&lt;/c&gt;
&lt;p&gt;See [cpan://List::Pairwise]&lt;/p&gt;

&lt;blockquote&gt;"...and my files are huge"&lt;/blockquote&gt;
&lt;p&gt;I don't know how your files look. Perhaps you can provide an example...&lt;/p&gt;
&lt;p&gt;I'm just guessing. Regards, Karl&lt;/p&gt;
&lt;!-- Node text goes above. Div tags should contain sig only --&gt;
&lt;div class="pmsig"&gt;&lt;div class="pmsig-1001958"&gt;
&lt;p&gt;«The Crux of the Biscuit is the Apostrophe»&lt;/p&gt;

&lt;/div&gt;&lt;/div&gt;</field>
<field name="root_node">
1010615</field>
<field name="parent_node">
1010615</field>
</data>
</node>
