- or download this
while (my $rec = $sth->fetchrow_hashref()) {
print $rec->{xy}, $rec->{xz}, $rec->{yz};
}
- or download this
while (my $row = $sth->fetchrow_hashref()) {
print map( { "$_ => $row->{$_}\t"} @{$sth->{NAME}}), "\n";
...
}
print "\n";
}
- or download this
while (my $row = $sth->fetchrow_arrayref()) { # arrayref, not hash
my $index = 0;
...
}
print "\n";
}
- or download this
my $aref = $sth->fetchall_arrayref({});