A CSV string may be terminated by 0x0A (line feed) or by 0x0D,0x0A (carriage return, line feed).
Unfortunately, some Mac format files terminate their lines with a sole carriage return (\r) and this is breaking our automated file processor which uses Text::CSV_XS. We can run mac2unix (or similar) on the file and that works fine, but we need a way to detect and deal with Mac files in an automated manner. Some ideas are:
Thanks for your help.
In reply to Text::CSV_XS and line-endings by friedo
| For: | Use: | ||
| & | & | ||
| < | < | ||
| > | > | ||
| [ | [ | ||
| ] | ] |