my $attributes = {
page => $c->request->param('p') || 1,
rows => 25
};
my @members = $schema->search({}, $attributes);
$c->stash( members => \@members );
<%LOOP members %>
<tr>
<td><%= _.username %></td>
<td><%= _.settings.registerDate %></td>
<td><%= _.profile.location %></td>
</tr>
<%/LOOP%>
vs
my $attributes = {
page => $c->request->param('p') || 1,
rows => 25
};
my $members = $schema->search({}, $attributes);
$c->stash( members => $members);
<%WHILE members.next %>
<tr>
<td><%= _.username %></td>
<td><%= _.settings.registerDate %></td>
<td><%= _.profile.location %></td>
</tr>
<%/WHILE%>
das eine kostet 2*n, das andere n\n\n
<!--EDIT|esskar|1146158956-->