Beefy Boxes and Bandwidth Generously Provided by pair Networks
good chemistry is complicated,
and a little bit messy -LW
 
PerlMonks  

Re: CSV tab-delimited not space-delimited

by Khen1950fx (Canon)
on Jun 25, 2010 at 09:59 UTC ( #846502=note: print w/replies, xml ) Need Help??


in reply to CSV tab-delimited not space-delimited

I'd try csv_allow_whitespace = 1; like this:
#!/usr/bin/perl use strict; use warnings; use DBD::CSV; my $csvh = DBI->connect("DBI:CSV:f_dir=.; csv_sep_char=\t;csv_eol=\n;") or die($DBI::errstr); $csvh->{csv_allow_whitespace} = 1; $csvh->{'csv_tables'}{'csv'} = { file => 'file.csv' };

Replies are listed 'Best First'.
Re^2: CSV tab-delimited not space-delimited
by mellon85 (Monk) on Jun 25, 2010 at 10:16 UTC
    that's exactly what i did, and set the variable even after the table initialization, just to test even insane cases

Log In?
Username:
Password:

What's my password?
Create A New User
Domain Nodelet?
Node Status?
node history
Node Type: note [id://846502]
help
Chatterbox?
and the web crawler heard nothing...

How do I use this? | Other CB clients
Other Users?
Others drinking their drinks and smoking their pipes about the Monastery: (2)
As of 2022-12-04 09:30 GMT
Sections?
Information?
Find Nodes?
Leftovers?
    Voting Booth?

    No recent polls found

    Notices?