Beefy Boxes and Bandwidth Generously Provided by pair Networks
Perl-Sensitive Sunglasses

Re^2: TEXT::CSV Error 2032

by Tux (Monsignor)
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

Comment on Re^2: TEXT::CSV Error 2032
Select or Download Code
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 the web crawler heard nothing...

How do I use this? | Other CB clients
Other Users?
Others cooling their heels in the Monastery: (13)
As of 2015-11-30 23:02 GMT
Find Nodes?
    Voting Booth?

    What would be the most significant thing to happen if a rope (or wire) tied the Earth and the Moon together?

    Results (788 votes), past polls