Nothing wrong with your method, just need to add an extra process call after your while.
process(\@group) if @group;
Also, be sure to add error checking to your dbh executes
$sth->execute() or die $dbh->errstr;
In reply to Re: DBI & processing groups of rows
by wind
in thread DBI & processing groups of rows
by Anonymous Monk
| For: | Use: | ||
| & | & | ||
| < | < | ||
| > | > | ||
| [ | [ | ||
| ] | ] |