you're right. The $recordset is just an arrayref, that's why the -&gt;next does not work. That's why I would like to ask, what will work in this case?<br> the [] brackets are for another things - I need to assign each value of the recordset to another set of arrays....<br> <br> thanks<br><br><b><i>Jonathan Rockway &lt;jon@jrock.us&gt;</i></b> wrote:<blockquote class="replbq" style="border-left: 2px solid rgb(16, 16, 255); margin-left: 5px; padding-left: 5px;"> Will Smith writes:<br>&gt; my $recordset = [$c-&gt;model('myDB::Books')-&gt;search( authorid =&gt;<br>&gt; "${authorid}" )];<br>&gt; while(my $name = $recordset-&gt;next){<br>&gt;             $lname[$i] = $name-&gt;lname;<br>&gt;             $fname[$i] = $name-&gt;fname;<br>&gt;             $i = $i + 1;<br>&gt;         }<br><br><br>Wrong list, but here's a hint... arrays aren't iterators.  Get rid of<br>the []s.<br><br>-- <br>package JAPH;use Catalyst qw/-Debug/;($;=JAPH)-&gt;config(name =&gt; do {<br>$,.=reverse
 qw[Jonathan tsu rehton lre rekca Rockway][$_].[split //,<br>";$;"]-&gt;[$_].q; ;for 1..4;$,=~s;^.;;;$,});$;-&gt;setup;<br><br>_______________________________________________<br>List: Catalyst@lists.rawmode.org<br>Listinfo: http://lists.rawmode.org/mailman/listinfo/catalyst<br>Searchable archive: http://www.mail-archive.com/catalyst@lists.rawmode.org/<br>Dev site: http://dev.catalyst.perl.org/<br></blockquote><br><p>&#32;

<hr size=1>Don't pick lemons.<br>
See all the <a href="http://autos.yahoo.com/new_cars.html;_ylc=X3oDMTE0OGRsc3F2BF9TAzk3MTA3MDc2BHNlYwNtYWlsdGFncwRzbGsDbmV3Y2Fycw--">new 2007 cars</a> at <a href="http://autos.yahoo.com/new_cars.html;_ylc=X3oDMTE0OGRsc3F2BF9TAzk3MTA3MDc2BHNlYwNtYWlsdGFncwRzbGsDbmV3Y2Fycw--">Yahoo! Autos.</a>