Possible to get a row count from Faster::CSV w/out parsing?

W

Wes Gamble

All,

I'm using Faster::CSV to process CSV files. It appears that the only
way to get the number of rows in my CSV file is to call one of the
methods which actually reads through all of the data, like read().

Is this correct? It makes sense that it would be this way, just
wondering.

Thanks,
Wes
 
J

James Edward Gray II

I'm using Faster::CSV to process CSV files. It appears that the only
way to get the number of rows in my CSV file is to call one of the
methods which actually reads through all of the data, like read().

Is this correct? It makes sense that it would be this way, just
wondering.

That's correct. It's impossible to know a row count without parsing
CSV content since fields can contain embedded line endings.

James Edward Gray II
 

Ask a Question

Want to reply to this thread or ask your own question?

You'll need to choose a username for the site, which only take a couple of moments. After that, you can post your question and our members will help you out.

Ask a Question

Members online

No members online now.

Forum statistics

Threads
474,444
Messages
2,571,709
Members
48,796
Latest member
Greg L.
Top