Evan A. Zacks wrote:
> # $sth is a prepared/executed DBI statement handle
> sub get_entries {
> while ( my $list_ref = $sth->fetchrow_arrayref() ) {
> return $list_ref;
> }
> };
Looks good to me! Thanks for working on this Evan.
One comment. Without testing it, can the DBI examples by further
simplified to this?
iterator => sub { $sth->fetchrow_arrayref }
Since it seems that the DBI method is a well behaved iterator already.
Perhaps I've missed something.
Mark
---------------------------------------------------------------------
Web Archive: http://www.mail-archive.com/[email protected]/
http://marc.theaimsgroup.com/?l=cgiapp&r=1&w=2
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]