Dave Cash <[EMAIL PROTECTED]> wrote:
>Perhaps I'm not following exactly what you're trying to do, but
>could you just do this?
>
>  push @notes, $rowref while my $rowref = $sth->fetchrow_hashref;
>
>or if that doesn't work:
>
>  while ( my $rowref = $sth->fetchrow_hashref ) {
>    push @notes, $rowref;
>  }

The references returned by fetchrow_{array,hash}ref are all references to
the *same* array or hash, so if you did this you'd wind up with an array of
multiple references to the same hash, containing the last row returned by
the query.


-- 
Sean McAfee -- [EMAIL PROTECTED]

_______________________________________________
templates mailing list
[EMAIL PROTECTED]
http://lists.template-toolkit.org/mailman/listinfo/templates

Reply via email to