Beefy Boxes and Bandwidth Generously Provided by pair Networks
Do you know where your variables are?
 
PerlMonks  

Re^2: line ending problem Text::CSV alternative Text::ParseWords?

by GertMT (Friar)
on Oct 06, 2009 at 12:29 UTC ( #799465=note: print w/ replies, xml ) Need Help??


in reply to Re: line ending problem Text::CSV alternative Text::ParseWords?
in thread line ending problem Text::CSV alternative Text::ParseWords?

that gives me:

# CSV_XS ERROR: 2023 - EIQ - QUO character not allowed

and nothing further.

If I leave out the auto_diag = 1 part I get nothing back on the screen.


Comment on Re^2: line ending problem Text::CSV alternative Text::ParseWords?
Select or Download Code
Re^3: line ending problem Text::CSV alternative Text::ParseWords?
by Tux (Monsignor) on Oct 06, 2009 at 12:32 UTC

    From the man page:

    2023 "EIQ - QUO character not allowed" Sequences like ""foo "bar" baz",quux" and "2023,",2008-04-05, +"Foo, Bar",\n" will cause this error.

    Can I see the actual data?

    update: FWIW those errors might go away if you parse with

    Text::CSV_XS->new ({ binary => 1, allow_loose_quotes => 1 });

    or

    Text::CSV_XS->new ({ binary => 1, escape_char => undef });

    Enjoy, Have FUN! H.Merijn

      that is magic for me. Where did you get this man page from.

      Great that you want to have a look at it. The file is created by a Filemaker DB (fmpro 6 --> Export CSV: output file character set: Macintosh). Would it be possible to e-mail you this? It is not that big, less then 500kb

      If I would just cut and paste it'll probably all work just fine as with opening and saving the script works fine.

        That info is standard info in man Text::CSV_XS or perldoc Text::CSV_XS. Also available in the on-line DIAGNOSTICS

        You can e-mail it to h dot m dot brand at xs4all dot nl or make it available by url. Size is not a problem.


        Enjoy, Have FUN! H.Merijn

Log In?
Username:
Password:

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

How do I use this? | Other CB clients
Other Users?
Others imbibing at the Monastery: (11)
As of 2014-08-27 21:47 GMT
Sections?
Information?
Find Nodes?
Leftovers?
    Voting Booth?

    The best computer themed movie is:











    Results (253 votes), past polls