Beefy Boxes and Bandwidth Generously Provided by pair Networks
Your skill will accomplish
what the force of many cannot

Re^2: TEXT::CSV Error 2032

by Tux (Abbot)
on Jun 25, 2012 at 16:46 UTC ( #978225=note: print w/replies, xml ) Need Help??

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

Completely wrong. All of it. Text::CSV_XS automatically deals with CR and/or NL in CSV streams/files.

When in doubt, read the manpage:

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

update: Sorry for that tone. I got sidetracked by the wrong paste in the OT. He used a message-code mismatch. I look at codes

2032 "EIF - CR char inside unquoted, not part of EOL"

2032 != 2023. Most of the time, NOT passing eol to the constructor is likely to solve the issue

Enjoy, Have FUN! H.Merijn

Replies are listed 'Best First'.
Re^3: TEXT::CSV Error 2032
by Happy-the-monk (Abbot) on Jun 25, 2012 at 16:58 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
      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.
      Hello Monks, the chomp was not the problem :-(. I also tried to substitute the newlines. Very strange.

Log In?

What's my password?
Create A New User
Node Status?
node history
Node Type: note [id://978225]
and all is quiet...

How do I use this? | Other CB clients
Other Users?
Others pondering the Monastery: (6)
As of 2018-01-18 08:18 GMT
Find Nodes?
    Voting Booth?
    How did you see in the new year?

    Results (208 votes). Check out past polls.