<?xml version="1.0" encoding="windows-1252"?>
<node id="552728" title="Re: error message in the end of the array looping?" created="2006-05-31 05:19:32" updated="2006-05-31 01:19:32">
<type id="11">
note</type>
<author id="491819">
ioannis</author>
<data>
<field name="doctext">
Use the &lt;i&gt;first()&lt;/i&gt; function from [dist://List:Util] .
&lt;p&gt;
print +(first { $_ eq 'correct_value' } @arr) || 'not found';
&lt;/p&gt;</field>
<field name="root_node">
552350</field>
<field name="parent_node">
552350</field>
</data>
</node>
