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.
In reply to Re: how do I manipulate data in csv file
by Tanktalus
in thread how do I manipulate data in csv file
by Anonymous Monk
| For: | Use: | ||
| & | & | ||
| < | < | ||
| > | > | ||
| [ | [ | ||
| ] | ] |