Re: different field delimiters and xml question

2004-05-12 Thread Jeff Zucker
Tim Bunce wrote: package AnyData::Format::ThreeSharp; use base 'AnyData::Format::Base'; sub write_fields { shift; sprintf "%s\n",join '###',@_ } sub read_fields { split '###', $_[1] } Should probably besplit '###', $_[1], -1 otherwise trailing empty fields will be removed.

Re: different field delimiters and xml question

2004-05-12 Thread Tim Bunce
On Tue, May 11, 2004 at 03:01:30PM -0700, Jeff Zucker wrote: > leegold wrote (off list): > > >So, something like: > > > >$dbh->{csv_sep_char}='###'; > > > >would work, you think? > > Hi, > > First, please respond to the list rather than to an individual. The > individual might be busy :-). Al

Re: different field delimiters and xml question

2004-05-11 Thread Jeff Zucker
leegold wrote (off list): So, something like: $dbh->{csv_sep_char}='###'; would work, you think? Hi, First, please respond to the list rather than to an individual. The individual might be busy :-). Also, if the answer is on the list, then everyone can learn from it. The {csv_sep_char} is

RE: code for different field delimiters and xml question

2004-05-11 Thread leegold
So, if the delimiter is '###' something like: $dbh->{sep_char}='###'; would work, you think? -- http://www.fastmail.fm - Sent 0.02 seconds ago

Re: different field delimiters and xml question

2004-05-11 Thread Jeff Zucker
leegold wrote: I understand there is support for comma tab and pipe delimited files. Let'say I have '###' as field delimiter in a flat text file. Can I "inform" the DBI and use this? DBI does not deal directly with databases, it leaves that to DBD (database driver) modules which are used alongsid

RE: different field delimiters and xml question

2004-05-11 Thread Reidy, Ron
-Original Message- From: leegold [mailto:[EMAIL PROTECTED] Sent: Tuesday, May 11, 2004 9:41 AM To: [EMAIL PROTECTED] Subject: different field delimiters and xml question I'm slightly cross posting because I have similiar question on newsgroup but no response (yet). Wondered if yo

different field delimiters and xml question

2004-05-11 Thread leegold
I'm slightly cross posting because I have similiar question on newsgroup but no response (yet). Wondered if you can entertain my ques. I understand there is support for comma tab and pipe delimited files. Let'say I have '###' as field delimiter in a flat text file. Can I "inform" the DBI and use