[Dbix-class] Dynamic/Flexible DBIC views
Adam Sjøgren
asjo at koldfront.dk
Mon Dec 1 17:25:41 GMT 2014
Christian writes:
> however, using next results in an endless loop returning the first
> entry over and over again:
>
> while (my $row = $schema->resultset('Foo')->next) {
> ...
> }
You are creating a new resultset object in each iteration(!)
Try something like:
my $foos=$schema->resultset('Foo');
while (my $row=$foos->next) {
...
}
Best regards,
Adam
--
"In the past we would do little things for love, but Adam Sjøgren
but things, big things required money. Now we can do asjo at koldfront.dk
big things for love."
More information about the DBIx-Class
mailing list