Beefy Boxes and Bandwidth Generously Provided by pair Networks
Think about Loose Coupling
 
PerlMonks  

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

by Tux (Canon)
on Oct 06, 2009 at 12:32 UTC ( [id://799468]=note: print w/replies, xml ) Need Help??


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

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

Replies are listed 'Best First'.
Re^4: line ending problem Text::CSV alternative Text::ParseWords?
by GertMT (Hermit) on Oct 06, 2009 at 12:49 UTC

    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
Domain Nodelet?
Node Status?
node history
Node Type: note [id://799468]
help
Chatterbox?
and the web crawler heard nothing...

How do I use this?Last hourOther CB clients
Other Users?
Others romping around the Monastery: (7)
As of 2024-03-28 10:44 GMT
Sections?
Information?
Find Nodes?
Leftovers?
    Voting Booth?

    No recent polls found