in reply to Test break, but still doing
if ($sth->rows >= 1) { my $sth = ...; $sth->execute(...); next; } [download]
See also the perlsyn manpage.