in reply to Determining if a DBI SELECT comes back empty
$sth->execute(); my $count = 0; while (my $row = $sth->fetchrow_arrayref()) { process_row($row); $count++; } unless ($count) { do_something_else(); }
|
|---|
| Replies are listed 'Best First'. | |
|---|---|
|
Re: Re: Determining if a DBI SELECT comes back empty
by spacewarp (Pilgrim) on Dec 05, 2003 at 22:08 UTC |