Handy code, but it does suffer the problem that the commas might be quoted or that there are newlines in quotes (a common problem with hand-rolled CSV parsers). If the OPs CSV files are simple enough, then your code will be useful. Otherwise, he or she may be forced to find a way to sneak in modules (which is often much easier than it sounds).
In any event, take my comments as caveats, not criticisms :) Your code has a good chance of working for simple CSV files.
Cheers,
Ovid
New address of my CGI Course.
In reply to Re^2: Compare CSV files
by Ovid
in thread Compare CSV files
by Anonymous Monk
| For: | Use: | ||
| & | & | ||
| < | < | ||
| > | > | ||
| [ | [ | ||
| ] | ] |