Beefy Boxes and Bandwidth Generously Provided by pair Networks
Perl Monk, Perl Meditation
 
PerlMonks  

Re: Trying to find missing closing quotes in CSV

by Tux (Abbot)
on Sep 16, 2013 at 16:22 UTC ( #1054311=note: print w/replies, xml ) Need Help??


in reply to Trying to find missing closing quotes in CSV

Install (and use) Text::CSV_XS and its utilities:

$ csv-check test.csv # CSV_XS ERROR: 2027 - EIQ - Quoted field not terminated @ rec 1 pos 3 +6 Checked test.csv with csv-check 1.5 using Text::CSV_XS 1.01 test.csv line 3/36 - 2027 - EIQ - Quoted field not terminated

Depending on how well/bad the CSV is formatted, some extra junk may surface


Enjoy, Have FUN! H.Merijn

Replies are listed 'Best First'.
Re^2: Trying to find missing closing quotes in CSV
by spstansbury (Monk) on Sep 16, 2013 at 18:04 UTC
    Thanks very, very much for the pointer to csv-check.pl

Log In?
Username:
Password:

What's my password?
Create A New User
Node Status?
node history
Node Type: note [id://1054311]
help
Chatterbox?
and all is quiet...

How do I use this? | Other CB clients
Other Users?
Others perusing the Monastery: (5)
As of 2016-12-10 11:55 GMT
Sections?
Information?
Find Nodes?
Leftovers?
    Voting Booth?
    On a regular basis, I'm most likely to spy upon:













    Results (162 votes). Check out past polls.