- or download this
use strict;
use DBI;
...
$sth->finish();
$db->disconnect;
- or download this
$sth = $db->prepare("SELECT * FROM csv_test");
$sth->execute;
...
printf "retrieved %d,%s\n", @$row;
}
$sth->finish;
- or download this
$$row[1] = decode( "utf8", $$row[1] );
- or download this
my @values = map { decode( "utf8", $_ ) } $sth->fetchrow_array;