Help for this page

Select Code to Download


  1. or download this
    use DBI;use strict;use warnings;
    my $dbh = DBI->connect("DBI:CSV:f_dir=./;");
    $dbh->do("create table mytable (field1 text,field2 text)");
    $dbh->do("insert into mytable values ('','there')");
    print "field1=",$dbh->selectrow_array("select field1 from mytable");
    
  2. or download this
    field1='?0?there'
  3. or download this
    use Text::CSV_XS;
    use IO::Wrap;
    my $csv = Text::CSV_XS->new(); 
    my $fh = wraphandle(STDOUT);
    $csv->print($fh, ['','test']);