Anonymous Monk has asked for the wisdom of the Perl Monks concerning the following question:
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 time
|
|---|
| Replies are listed 'Best First'. | |
|---|---|
|
Re: adding a new column to a CSV
by wind (Priest) on Apr 23, 2011 at 01:45 UTC | |
|
Re: adding a new column to a CSV
by Tux (Canon) on Apr 23, 2011 at 07:07 UTC | |
by Anonymous Monk on Apr 23, 2011 at 22:06 UTC | |
by Tux (Canon) on Apr 25, 2011 at 07:07 UTC | |
|
Re: adding a new column to a CSV
by Anonymous Monk on Apr 23, 2011 at 01:29 UTC |