you're right. The $recordset is just an arrayref, that's why the ->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 <jon@jrock.us></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>> my $recordset = [$c->model('myDB::Books')->search( authorid =><br>> "${authorid}" )];<br>> while(my $name = $recordset->next){<br>> $lname[$i] = $name->lname;<br>> $fname[$i] = $name->fname;<br>> $i = $i + 1;<br>> }<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)->config(name => do {<br>$,.=reverse
qw[Jonathan tsu rehton lre rekca Rockway][$_].[split //,<br>";$;"]->[$_].q; ;for 1..4;$,=~s;^.;;;$,});$;->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> 
<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>