Beefy Boxes and Bandwidth Generously Provided by pair Networks
Don't ask to ask, just ask
 
PerlMonks  

Re: fetchall_arrayref DBI question ?

by bradcathey (Prior)
on Mar 17, 2009 at 00:09 UTC ( [id://751070]=note: print w/replies, xml ) Need Help??


in reply to fetchall_arrayref DBI question ?

Required reading

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.

—Brad
"The important work of moving the world forward does not wait to be done by perfect men." George Eliot

Log In?
Username:
Password:

What's my password?
Create A New User
Domain Nodelet?
Node Status?
node history
Node Type: note [id://751070]
help
Chatterbox?
and the web crawler heard nothing...

How do I use this?Last hourOther CB clients
Other Users?
Others having an uproarious good time at the Monastery: (4)
As of 2024-04-20 02:10 GMT
Sections?
Information?
Find Nodes?
Leftovers?
    Voting Booth?

    No recent polls found