Re: csv parse bug...
- From: "A. Sinan Unur" <1usa@xxxxxxxxxxxxxxxxxxx>
- Date: Thu, 21 Jul 2005 12:37:05 GMT
"Prasad Gadgil" <prasad.gadgil@xxxxxxxxx> wrote in
news:1121946386.338358.297250@xxxxxxxxxxxxxxxxxxxxxxxxxxxx:
> If I have wrongly posted this here instead of reporting this as a
> module bug, pl excuse me.
You have posted in the right group, but in the wrong way.
You need to produce a small but complete script, together with some
data, that still displays the problem.
That way, we can easily test alternative hypotheses about your problem.
Please consult the posting guidelines for this group. Read especially
about the __DATA__ filehandle.
> I am facing an odd bug when using parse() function in Text::CSV
> module. This is an absolutely textbook use of the function which fails
> for some 30 records out of ~ 25000 records.
Obviously, we don't need 25,000 records. All we need is some data where
things work the way you expect them to, and some where they don't along
with a short but complete script we can run just by copying and pasting.
> I have checked, and have found a very strange pattern. In one of the
> possible fields which will have embedded commas qualified by double
> quotes (like "CN=XX ,OU=XX,OU=XX,DC=XX,DC=XX"), if a pattern line "
> ,OU" appears, the parse fails... which means if there is a space
> before the embedded comma in one of the comma seperated fields, the
> parse fails.
I am not quite sure about the exact format of the data for which you
claim the parser fails. As I said, show us code, show us real data.
> The code where I exit from the code with parse error is pasted
> below...
But it is not a complete script we can run by copying and pasting.
Sinan
--
A. Sinan Unur <1usa@xxxxxxxxxxxxxxxxxxx>
(reverse each component and remove .invalid for email address)
comp.lang.perl.misc guidelines on the WWW:
http://mail.augustmail.com/~tadmc/clpmisc/clpmisc_guidelines.html
.
- References:
- csv parse bug...
- From: Prasad Gadgil
- csv parse bug...
- Prev by Date: csv parse bug...
- Next by Date: Re: Image::Magick and perl script STDOUT problem
- Previous by thread: csv parse bug...
- Next by thread: Re: csv parse bug...
- Index(es):
Relevant Pages
|