Thanks for your help. That was it! The first 2 columns had commas within the data. I removed the first two columns, and it ran as expected.
UPDATE
I may have spoken too soon. As soon as I put the columns back (along with several other columns I removed), I ran into issues again. The filter is working as expected, however, the while loop exits after about 240 rows. I'm assuming it's due to the size of the file (155k KB)... Is there a size limit to the Parse::CSV module?
| [reply] |
print $parser->errstr;
I suspect, though, that the problem has something to do with the structure of your data - does it change in any way around row 240? You mention that some of the columns have commas within - maybe you could post some of your input data here (inside <code></code> tags). | [reply] [d/l] |
print $Parse::CSV::VERSION;
poj
| [reply] [d/l] |