That fails because parsing CSV-style data is more difficult than it appears. The first hurdle is how to handle when the separator appears in a quoted field ("joe _blow" _ 2 _ "hourly"). The second hurdle is more fiendish: newlines embedded in quoted fields. It's less likely to occur, but if it does, iterating over records becomes painful.
Cheers,
Ovid
New address of my CGI Course.
In reply to Re^2: DBD::CSV and really bad legacy flat file
by Ovid
in thread DBD::CSV and really bad legacy flat file
by harleypig
| For: | Use: | ||
| & | & | ||
| < | < | ||
| > | > | ||
| [ | [ | ||
| ] | ] |