- or download this
while ( my $ref = $self->fetch_assoc($sth) )
- or download this
my $dbh = DBI->connect(@db_args);
my $sql = "SELECT email FROM database.table";
...
$sth->execute();
while (my $hashref = $sth->fetchrow_hashref) {
...
- or download this
my $sth = $db->query($sql)...