Re: Spliting comma delimited data

2003-06-09 Thread Janek Schleicher
Rob Anderson wrote at Mon, 09 Jun 2003 16:08:54 +0100: > I have the following code, which I intend to use to save/restore an array > to/from a text file with. > > As I'm using a comma to delilmit the data I'm escaping commas on the way > out, an unescaping on the way in. This means that when I sp

Re: Spliting comma delimited data

2003-06-09 Thread James Edward Gray II
On Monday, June 9, 2003, at 10:08 AM, Rob Anderson wrote: Is there some way to exclude the [^\\] part from being matched, err or something, help. my @restored_array = map { $_ =~ s/\\,/,/g; $_ } split(/[^\\],/, Try split /^(? That's only about my third ever "look-around assertion" though, so so

Spliting comma delimited data

2003-06-09 Thread Rob Anderson
Hi All I have the following code, which I intend to use to save/restore an array to/from a text file with. As I'm using a comma to delilmit the data I'm escaping commas on the way out, an unescaping on the way in. This means that when I split the string into an array, I need to make sure I DON'T