Hi,
any idea why the following code-snippet doesn't work:
$dbh->execute;
my $table = $dbh->fetchall_arrayref;
my ($i, $j);
for $i (0 .. $#{$table}) {
for $j (0 .. $#{$table->[$i]}){
print "$table->[$i][$j]\t";
}
print "<br>";
}
Thanks for help!
any idea why the following code-snippet doesn't work:
Code:
$dbh = $dbh->prepare("SHOW PROCESSLIST"); $dbh->execute;
my $table = $dbh->fetchall_arrayref;
my ($i, $j);
for $i (0 .. $#{$table}) {
for $j (0 .. $#{$table->[$i]}){
print "$table->[$i][$j]\t";
}
print "<br>";
}
Thanks for help!