Subject: | Fails to use quote_char of '~' |
If you set the quote_char to '~' and have an occurance of " within the
code, the script crashes.
#############PERL SCRIPT
#!/usr/bin/perl
use strict;
no warnings;
use DBI;
my $file = shift;
my $dbh = DBI->connect('DBI:CSV:f_dir=.;')
or die "Cannot connect $!";
$dbh->{'csv_tables'}{'current_table'}
= { file => $file, quote_char => '~' };
my $sth = $dbh->prepare(q{SELECT * FROM current_table});
$sth->execute();
while ( my @row = $sth->fetchrow_array ) {
print @row;
print "\n";
}
############DATA FILE
~Style Name~
~5dr Crew Cab 130" WB 2WD LS~