[Catalyst] looping

Bogdan Lucaciu bogdan at wiz.ro
Mon Feb 12 20:27:41 GMT 2007


On Monday 12 February 2007 22:15, Will Smith wrote:
>  my $recordset = [$c->model('myDB::Books')->search( authorid =>
> "${authorid}" )]; while(my $name = $recordset->next){

what's whith the square brackets [] ?
$recordset is not an object, just an arrayref, so ->next doesn't work.

-- 
Bogdan Lucaciu
http://www.wiz.ro



More information about the Catalyst mailing list