in reply to Test break, but still doing

the next function doesn't require a condition:
if ($sth->rows >= 1) { my $sth = ...; $sth->execute(...); next; }

See also the perlsyn manpage.