Beefy Boxes and Bandwidth Generously Provided by pair Networks
Pathologically Eclectic Rubbish Lister
 
PerlMonks  

Re^3: Filtering rows with Parse::CSV

by tangent (Vicar)
on Mar 27, 2017 at 21:24 UTC ( #1186160=note: print w/replies, xml ) Need Help??


in reply to Re^2: Filtering rows with Parse::CSV
in thread Filtering rows with Parse::CSV

the while loop exits after about 240 rows. I'm assuming it's due to the size of the file
I doubt if your problem is due to the size of the file - Parse::CSV is designed specifically to handle large files, and only reads one line at a time.

You could try adding this line after your loop:

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).

Log In?
Username:
Password:

What's my password?
Create A New User
Domain Nodelet?
Node Status?
node history
Node Type: note [id://1186160]
help
Chatterbox?
and the web crawler heard nothing...

How do I use this? | Other CB clients
Other Users?
Others contemplating the Monastery: (4)
As of 2022-05-19 02:37 GMT
Sections?
Information?
Find Nodes?
Leftovers?
    Voting Booth?
    Do you prefer to work remotely?



    Results (71 votes). Check out past polls.

    Notices?