thank you for your help. That's exactly what I want to do. <br> <br> regards<br><br><b><i>Boris Ĉeraniĉ &lt;zextra@gmail.com&gt;</i></b> wrote:<blockquote class="replbq" style="border-left: 2px solid rgb(16, 16, 255); margin-left: 5px; padding-left: 5px;"> On 12/02/07, Will Smith <willbelair @yahoo.com=""> wrote:<br>&gt; Hi,<br>&gt;  I may ask the same old question, but just could get it. So please help me<br>&gt; to get it done. All I want is looping through the record set for example: if<br>&gt; I want to loop through a column, I can use this:<br>&gt;<br>&gt;  my @lname;<br>&gt;          ########################<br>&gt;          my $column =<br>&gt; $c-&gt;model("myDB::Author")-&gt;get_column('last_name');<br>&gt;          while(my $name = $column-&gt;next){<br>&gt;              $lname[$i] = $name;<br>&gt;              $i = $i + 1;<br>&gt;          }<br>&gt;  -----<br>&gt;  but if I try:<br>&gt;  my $recordset = [$c-&gt;model('myDB::Books')-&gt;search(<br>&gt; authorid
 =&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>&gt;...<br>&gt;<br>&gt; Thank you<br>&gt;<br><br>You should have placed $recordset in foreach, like this:<br><br>my $recordset = [ something that returns list in list context ];<br><br>foreach my $name ( @$recordset ) {<br>...<br>}<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></willbelair></blockquote><br><p>&#32;

<hr size=1>TV dinner still cooling?<br><a href="http://us.rd.yahoo.com/evt=49979/*http://tv.yahoo.com/">Check out "Tonight's Picks"</a> on Yahoo! TV.