mellon85 has asked for the wisdom of the Perl Monks concerning the following question:
I'm trying to use a tab-delimited CSV file with DBD::CSV but some fields contain spaces and the driver uses them as column separator scrambling all the columns.
my $csvh = DBI->connect("DBI:CSV:f_dir=.;csv_sep_char=\t;csv_eol=\n;") or die($DBI::errstr); $csvh->{'csv_tables'}->{'csv'} = { 'file' => file.csv };
|
---|
Replies are listed 'Best First'. | |
---|---|
Re: CSV tab-delimited not space-delimited
by ww (Archbishop) on Jun 25, 2010 at 09:51 UTC | |
by mellon85 (Monk) on Jun 25, 2010 at 10:06 UTC | |
by Tux (Canon) on Jun 25, 2010 at 10:22 UTC | |
by mellon85 (Monk) on Jun 26, 2010 at 14:06 UTC | |
Re: CSV tab-delimited not space-delimited
by Tux (Canon) on Jun 25, 2010 at 10:16 UTC | |
by mellon85 (Monk) on Jun 25, 2010 at 10:31 UTC | |
Re: CSV tab-delimited not space-delimited
by Khen1950fx (Canon) on Jun 25, 2010 at 09:59 UTC | |
by mellon85 (Monk) on Jun 25, 2010 at 10:16 UTC |
Back to
Seekers of Perl Wisdom