Beefy Boxes and Bandwidth Generously Provided by pair Networks
No such thing as a small change
 
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


Comment on Re: Trying to find missing closing quotes in CSV
Download Code
Re^2: Trying to find missing closing quotes in CSV
by spstansbury (Scribe) 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 scrutinizing the Monastery: (12)
As of 2014-12-18 09:46 GMT
Sections?
Information?
Find Nodes?
Leftovers?
    Voting Booth?

    Is guessing a good strategy for surviving in the IT business?





    Results (48 votes), past polls