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
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 romping around the Monastery: (9)
As of 2015-07-08 08:06 GMT
Sections?
Information?
Find Nodes?
Leftovers?
    Voting Booth?

    The top three priorities of my open tasks are (in descending order of likelihood to be worked on) ...









    Results (96 votes), past polls