Beefy Boxes and Bandwidth Generously Provided by pair Networks
Problems? Is your data what you think it is?

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.

Replies are listed 'Best First'.
Re^3: line ending problem Text::CSV alternative Text::ParseWords?
by Tux (Canon) 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 });


    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?

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

How do I use this? | Other CB clients
Other Users?
Others browsing the Monastery: (2)
As of 2021-10-16 03:08 GMT
Find Nodes?
    Voting Booth?
    My first memorable Perl project was:

    Results (69 votes). Check out past polls.