"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
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
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
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
>
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,
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
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