in reply to DBI output and Template Toolkit
so my question is how do you use bind_columns with Template that require you to collect all results first?
You're already doing it.
A couple of quick notesnits:
is the same asmy %row_copy = %row; push @rows, \%row_copy;
push @rows, { %row };
When I use bind_columns, I find using
while ( $sth->fetchrow_arrayref ) {
to be somewhat misleading since there's no array_ref involved. Instead, I use
while ( $sth->fetch ) {
fetch and fetchrow_arrayref are the same function.
|
|---|