in reply to how do I manipulate data in csv file
What have you tried? Does it have to be the same file (not sure if that's a requirement or not)?
Personally, I'd use DBD::CSV. And then the whole thing becomes a trivial SQL query from your source file and a simple SQL insert to your output file. It is a bit more to set up, but since I set up DBD::CSV from time to time (I use it in a few projects), it becomes a bit more mundane (normal or ordinary). And I avoid a whole lot of work by letting SQL::Statement and friends do all my work for me. And then it's also an easier transition to a real database (MySQL, PostgreSQL, DB2, Oracle, SQLServer, or a more-real database like SQLite) as your needs scale.
|
|---|
| Replies are listed 'Best First'. | |
|---|---|
|
Re^2: how do I manipulate data in csv file
by Anonymous Monk on Jul 26, 2011 at 03:48 UTC | |
by Tanktalus (Canon) on Jul 26, 2011 at 05:03 UTC | |
by Anonymous Monk on Jul 26, 2011 at 06:10 UTC | |
by Anonymous Monk on Jul 26, 2011 at 14:06 UTC |