[Catalyst] Re: looping

A. Pagaltzis pagaltzis at gmx.de
Wed Feb 14 05:42:54 GMT 2007


* Will Smith <willbelair at yahoo.com> [2007-02-12 21:25]:
> my $column = $c->model("myDB::Author")->get_column('last_name');
> while(my $name = $column->next){
>     $lname[$i] = $name;
>     $i = $i + 1;
> }

Ugh. Use `push`; this isn’t C.

Regards,
-- 
Aristotle Pagaltzis // <http://plasmasturm.org/>



More information about the Catalyst mailing list