Gossamer Forum
Home : Products : DBMan : Customization :

Splitting a string

Quote Reply
Splitting a string
Okay for what I am trying to do, I have an array of records, but it's not an array of arrays. so the records come out like this:

123|candy|i like sweets ( or something like this)

but that is just 1 record in the array, as a string. How can I split this string into a separate, temporary array?
I have tried this:

$toc=$array[0];
@temp = split (/|/, $toc);

but it doesn't seem to split and create an array. What am I doing wrong???

Subject Author Views Date
Thread Splitting a string shogun 1073 Nov 26, 2000, 10:51 PM
Thread Re: Splitting a string
AstroBoy 1043 Nov 27, 2000, 12:28 AM
Post Re: Splitting a string
shogun 1020 Nov 27, 2000, 6:08 AM