You could basically have:
sub _fetchall { my ($self,%arg) = @_; my $stm = "select * from $arg{table}"; return $dbh->selectall_arrayref($stmt, {Slice => {}}); }
No need to prepare or excute. It's all done for you.
In reply to Re: fetchall_arrayref DBI question ?
by bradcathey
in thread fetchall_arrayref DBI question ?
by baxy77bax
| For: | Use: | ||
| & | & | ||
| < | < | ||
| > | > | ||
| [ | [ | ||
| ] | ] |