"Is a CSV a comma delimited list. If so when creating a CSV how does one cope with
fields that have commas in them.[?]"

Hi Colin,

Sorry for the late response.  I forgot the solution I had come up with earlier.  I 
used in a project that I tabled while I was working on another one.  Try(on the 
loading end):


sub DataPrint {
  my($Handle, $key, $hashref) = @_;
  my $Data = $contents{$key};
  $Data =~ (s/,/%2C/);
  print $Handle "$Data,";
}

used as in:
  DataPrint(NEWMEMBER, 'MemberName', \%contents);
I developed it particularly for name fields, since that is where people from 
militaristic or bereaucratic backgrounds would be likely to use the "Last, Fist M" 
format.  It does rquire on the other end, that fields be scanned with the usual CGI 
query string translation for special characters:

   $value =~ s/%([a-fA-F0-9][a-fA-f0-9])/pack("C", hex($1))/eg;

or the equivalent in whatever language you use to read the data.

Joseph


-- 
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]

Reply via email to