$sth->execute(); my $count = 0; while (my $row = $sth->fetchrow_arrayref()) { process_row($row); $count++; } unless ($count) { do_something_else(); }
In reply to Re: Determining if a DBI SELECT comes back empty
by iburrell
in thread Determining if a DBI SELECT comes back empty
by spacewarp
| For: | Use: | ||
| & | & | ||
| < | < | ||
| > | > | ||
| [ | [ | ||
| ] | ] |