XP is just a number | |
PerlMonks |
Re^4: Complex file manipulation challengeby Tux (Canon) |
on Aug 14, 2019 at 06:32 UTC ( [id://11104432]=note: print w/replies, xml ) | Need Help?? |
Your vision on CSV is indeed very limited :) Consider not only Excel (or other spreadsheet application) exports, but also:
All of the above should remember you never to use regular expressions or read-by-line algorithms to parse CSV. It looks too easy to be true. Now reconsider you last line: a CSV file does not have a humongous line length. It is likely to have a humongous record length. (Think of a database export where a table has stored movies in parts and each record has up to 4 pieces of the movies, so each CSV record can be Gb's. People use databases and CSV for weird things. Enjoy, Have FUN! H.Merijn
In Section
Seekers of Perl Wisdom
|
|