On 24 June 2011 09:53, Wernher Eksteen <wekst...@gmail.com> wrote: > Hi, > > Thanks for the tip, will try to figure it out on the weekend and come back > if I'm > stuck. > > Just a few questions before I try this... > > Does these modules have the ability to add the commas in the way I need them > to be?
Yes. When you construct a new Text::CSV_XS object, set the sep_char to the tab character so that when you read the file in, each value from each column is stored correctly. They reset sep_char to ',' when you want to send the output to a file. > The CVS_XS.pm module seems more flexible/powerful than the CVS.pm one > or am I wrong? > The _XS means that this module uses C code under the bonnet so it runs really fast. If you are on a *nix based PC and have all the necessary libraries and a compiler this is probably a better option. It's the one I generally use. This module also has a _PP (pure perl) version[1] in case you do not have a compiler on your PC. 1) http://search.cpan.org/perldoc?Text%3A%3ACSV_PP HTH, Dermot. -- To unsubscribe, e-mail: beginners-unsubscr...@perl.org For additional commands, e-mail: beginners-h...@perl.org http://learn.perl.org/