Beefy Boxes and Bandwidth Generously Provided by pair Networks
Do you know where your variables are?
 
PerlMonks  

Re^2: selectrow_array() confusion

by jeffa (Bishop)
on Nov 25, 2008 at 20:02 UTC ( [id://725931]=note: print w/replies, xml ) Need Help??


in reply to Re: selectrow_array() confusion
in thread selectrow_array() confusion

I was able to get this to work for me as well using MySQL.

use DBI; use Data::Dumper; my $dbh = DBI->connect( 'DBI:mysql:database:host', 'user', 'pass', {RaiseError=>1} ); print Dumper [ $dbh->selectrow_array( 'select max(id),min(id) from movie' ) ];

jeffa

L-LL-L--L-LL-L--L-LL-L--
-R--R-RR-R--R-RR-R--R-RR
B--B--B--B--B--B--B--B--
H---H---H---H---H---H---
(the triplet paradiddle with high-hat)

Log In?
Username:
Password:

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

How do I use this?Last hourOther CB clients
Other Users?
Others contemplating the Monastery: (7)
As of 2024-04-19 06:38 GMT
Sections?
Information?
Find Nodes?
Leftovers?
    Voting Booth?

    No recent polls found