<?xml version="1.0" encoding="windows-1252"?>
<node id="991209" title="Re^5: filtering an array" created="2012-09-01 18:59:39" updated="2012-09-01 18:59:39">
<type id="11">
note</type>
<author id="989386">
philiprbrenan</author>
<data>
<field name="doctext">
&lt;p&gt;You do not need the for becuase grep loops over the array you give it.  Please change:&lt;/p&gt;
&lt;code&gt; 
 for (@positions) {@positions = grep $_-&gt;[1] =~ /ac/i, @positions;}
&lt;/code&gt;&lt;p&gt;to:&lt;/p&gt;
&lt;code&gt; 
 @positions = grep $_-&gt;[1] =~ /ac/i, @positions;
&lt;/code&gt;</field>
<field name="root_node">
991184</field>
<field name="parent_node">
991208</field>
</data>
</node>
