I was wondering if there is a slightly simpler (fewer lines) to accomplish what I am doing here (maybe without the while loop and/or push).
my $query = qq~ SELECT * FROM my_table ~; my $sth = $dbh->prepare($query); my $rv = $sth->execute; my @res; while (my $r = $sth->fetchrow_hashref) { push(@res, $r); }
Thanks!
In reply to DBI Array of Hashes... simpler way? by Rodster001
| For: | Use: | ||
| & | & | ||
| < | < | ||
| > | > | ||
| [ | [ | ||
| ] | ] |