Re: Split string into array

2007-11-19 Thread Dr.Ruud
"Tom Phoenix" schreef: > my @pieces = split / /, "a b c d"; split() has a great default mode, that you get when you supply a string value, only containing a single space, as the first parameter. my @pieces = split " ", " ab c d "; -- Affijn, Ruud "Gewoon is een tijger." -- To uns

Re: Split string into array

2007-11-18 Thread oryann9
Tom I thought taking a string and assigning it to an array would do it and I was wrong. Here is a sample line of source; "2004-08-03 23:57 1,712,128 GdiPlus.dll" and the recommended split gives me 13 for the number of items. I would like an array that has "2004-08-03", "23:57","1

Re: Split string into array

2007-11-17 Thread John W . Krahn
On Friday 16 November 2007 17:24, AndrewMcHorney wrote: > Hello Hello, > I now got my directory listing into an array of strings. I would like > to now split up the string into a an array of strings from the > original string. For example, I might have a string of "a b c d" > and I now want a 4

Re: Split string into array

2007-11-17 Thread Tom Phoenix
On 11/16/07, AndrewMcHorney <[EMAIL PROTECTED]> wrote: > Here is a sample line of source; > > "2004-08-03 23:57 1,712,128 GdiPlus.dll" and the > recommended split gives me 13 for the number of items. I would like > an array that has "2004-08-03", "23:57","1,712,128","GdiPlus.dll" as >

Re: Split string into array

2007-11-17 Thread AndrewMcHorney
Tom I thought taking a string and assigning it to an array would do it and I was wrong. Here is a sample line of source; "2004-08-03 23:57 1,712,128 GdiPlus.dll" and the recommended split gives me 13 for the number of items. I would like an array that has "2004-08-03", "23:57","1,

Re: Split string into array

2007-11-17 Thread Tom Phoenix
On 11/16/07, AndrewMcHorney <[EMAIL PROTECTED]> wrote: > I now got my directory listing into an array of strings. I would like > to now split up the string into a an array of strings from the > original string. For example, I might have a string of "a b c d" > and I now want a 4 element array con

Split string into array

2007-11-17 Thread AndrewMcHorney
Hello I now got my directory listing into an array of strings. I would like to now split up the string into a an array of strings from the original string. For example, I might have a string of "a b c d" and I now want a 4 element array containing "a", "b", "c", 'd". I did the following but