Beefy Boxes and Bandwidth Generously Provided by pair Networks
"be consistent"
 
PerlMonks  

Re^3: TEXT::CSV Error 2032

by Happy-the-monk (Monsignor)
on Jun 25, 2012 at 16:58 UTC ( #978226=note: print w/ replies, xml ) Need Help??


in reply to Re^2: TEXT::CSV Error 2032
in thread TEXT::CSV Error 2032

Text::CSV_XS automatically deals with CR and/or NL in CSV streams/files.

Well the documentation (that I claim not to know :-P) says otherwise:

This means that fields can not contain newlines. If your data contains newlines embedded in fields, or characters above 0x7e (tilde), or binary data, you *must* set binary => 1 in the call to new (). To cover the widest range of parsing options, you will always want to set binary.

Still I haven't been able to reproduce the OP's error yet.

Cheers, Sören


Comment on Re^3: TEXT::CSV Error 2032
Re^4: TEXT::CSV Error 2032
by Tux (Monsignor) on Jun 25, 2012 at 17:04 UTC

    The OP did add binary => 1 in the constructor, so that part of the doc is not applicable to this problem IMHO.

    Again sorry for the harsh tone in my first reply. Appreciate your help to people with questions.


    Enjoy, Have FUN! H.Merijn
Re^4: TEXT::CSV Error 2032
by endymion (Acolyte) on Jun 26, 2012 at 06:14 UTC
    Hello Monks, the chomp was not the problem :-(. I also tried to substitute the newlines. Very strange.
Re^4: TEXT::CSV Error 2032
by endymion (Acolyte) on Jun 26, 2012 at 06:26 UTC
    False alarm . I have found the problem. Now it works. There were hidden ^M chars in the file. For other user, got this problem. With substitute s/^M//g I solved the error. Thanks Tux for the right direction.

Log In?
Username:
Password:

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

How do I use this? | Other CB clients
Other Users?
Others cooling their heels in the Monastery: (6)
As of 2014-07-14 09:04 GMT
Sections?
Information?
Find Nodes?
Leftovers?
    Voting Booth?

    When choosing user names for websites, I prefer to use:








    Results (257 votes), past polls