Bind those columns!
Compare
while($row = $sth->fetchrow_arrayref) {
print “$row->[0]: $row->[1]\n”;
}
with
$sth->bind_columns(\$key, \$value);
while($sth->fetchrow_arrayref) {
print “$key: $value\n”;
}
No row assignment code!
No column access code!
... just magic
Previous slide
Next slide
Back to first slide
View graphic version