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

blaze's scratchpad

by blaze (Friar)
on Apr 14, 2005 at 22:14 UTC ( #447988=scratchpad: print w/replies, xml ) Need Help??

#!/usr/bin/perl #use strict; my $user = "usern"; my $pass = "passw"; my $sql_s = "select stamp,state from pridata order by stamp limit 46"; my $dbh = DBI->connect("dbi:mysql:database=db1;",$user,$pass); my $sth = $dbh->prepare($sql_s); $sth->execute(); my $res = $sth->fetchall_arrayref(); for my $row( @$res ){ ${@$row[0]} = @$row[1]; } $sth->finish(); $dbh->disconnect();
Log In?
Username:
Password:

What's my password?
Create A New User
Chatterbox?
and the web crawler heard nothing...

How do I use this? | Other CB clients
Other Users?
Others chanting in the Monastery: (6)
As of 2019-04-18 10:16 GMT
Sections?
Information?
Find Nodes?
Leftovers?
    Voting Booth?
    I am most likely to install a new module from CPAN if:
















    Results (102 votes). Check out past polls.

    Notices?
    • (Sep 10, 2018 at 22:53 UTC) Welcome new users!