I recently encountered a problem with DBD::CSV that I thought I would ask about. I am in the process of migrating data from an Access database to an Oracle database. I had exported the Access tables to CSV files for my own reference, and then got the idea that I might be able to use DBD::CSV to read my text files and DBD::Oracle to write them to the Oracle database.
I was surprised to find that I could access CSV files that I had created with DBD::CSV, but not the text files I wanted to read. I finally determined the problem: DBD::CSV would not recognize files that did not have DOS-style (0d0a) line terminators. Being on a UNIX machine, I had to use the following filter to `fix' all of my CSV files:
perl -ne 's/\n/\r\n/; print;' OrigFile > FixedFile
My questions are:
Thanks for your time.
In reply to DBD::CSV Question by DamnDirtyApe
| For: | Use: | ||
| & | & | ||
| < | < | ||
| > | > | ||
| [ | [ | ||
| ] | ] |