Beefy Boxes and Bandwidth Generously Provided by pair Networks
Keep It Simple, Stupid
 
PerlMonks  

Re^3: TEXT::CSV Error 2032

by Happy-the-monk (Abbot)
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

Replies are listed 'Best First'.
Re^4: TEXT::CSV Error 2032
by Tux (Abbot) 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: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.
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.

Log In?
Username:
Password:

What's my password?
Create A New User
Node Status?
node history
Node Type: note [id://978226]
help
Chatterbox?
[Corion]: The code is 00000000, as always, no?
[GotToBTru]: I remember hearing about somebody misplacing a list of code phrases or something
[marto]: 12345
[GotToBTru]: the "nuclear codes" are in the case cuffed to the wrist of some guy
[LanX]: not always
[LanX]: it's up to the Supreme commander
[GotToBTru]: we don't have one of those ;)
[LanX]: commander in chief whatever

How do I use this? | Other CB clients
Other Users?
Others about the Monastery: (8)
As of 2017-01-20 12:43 GMT
Sections?
Information?
Find Nodes?
Leftovers?
    Voting Booth?
    Do you watch meteor showers?




    Results (174 votes). Check out past polls.