while ( my($sno, $name) = $sth->fetchrow() ) { print "$name: $sno\n"; print "\n"; } $sth->finish;