in reply to fetchall_arrayref DBI question ?
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.
|
|---|