I am a new perl programmer and struggle with the language and its idioms (but I'm trying!). I need to add a new column to an existing CSV file. It needs to be the second column in the file but it could be the first or last if that is easier. I was recommended to look at http://search.cpan.org/~jwied/Text-CSV_XS-0.23/CSV_XS.pm. I have looked but I can only see how to create new CSVs rather than modify existing ones. Please could you point me in the right direction and give me an outline of how to do this. I'm not asking anyone to do it for me but I am hoping some pointers from you experts will spend me hours of banging my head against the wall.
Many thanks for your timeIn reply to adding a new column to a CSV by Anonymous Monk
| For: | Use: | ||
| & | & | ||
| < | < | ||
| > | > | ||
| [ | [ | ||
| ] | ] |