Beefy Boxes and Bandwidth Generously Provided by pair Networks
There's more than one way to do things
 
PerlMonks  

Re: Trying to find missing closing quotes in CSV

by Tux (Monsignor)
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 the web crawler heard nothing...

How do I use this? | Other CB clients
Other Users?
Others having an uproarious good time at the Monastery: (6)
As of 2016-07-01 07:53 GMT
Sections?
Information?
Find Nodes?
Leftovers?
    Voting Booth?
    My preferred method of making French fries (chips) is in a ...











    Results (408 votes). Check out past polls.