Help for this page

Select Code to Download


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