[Chicago-talk] More Details on Socket-to-Hash Question

Steven Lembark lembark at wrkhors.com
Mon Mar 26 15:23:15 PDT 2007

> what I described can be done in a better way?

DBI will move the data for you, dealing with all
of the serialization issues internally and at a
higher speed than anything you're likely to come
up with:

  my $dbh = DBI->connect( ... );

  my $sth = $dbh->prepare( $your_sql_here );

  $sth->execute( @valuz );

  my @data = $sth->fetchall_arrayref;

is nearly all you knead to get the data out of a
database (at least for MySQL).

Steven Lembark                                         85-09 90th Street
Workhorse Computing                                  Woodhaven, NY 11421
lembark at wrkhors.com                                      +1 888 359 3508

More information about the Chicago-talk mailing list