![]() |
|
Welcome to the Monastery | |
PerlMonks |
comment on |
( #3333=superdoc: print w/replies, xml ) | Need Help?? |
I have a need to convert this string into a two dimensional array. For instance, I need to convert this: 0 X X X X X X X X 1 X X X X X X X X 2 X X X X X X X X 3 X X X X X X X X 4 X X X X X X X X 5 X X X X X X X X 6 X X X X X X X X 7 Into this: 0 X X X X X X XX 1 X X X X X X X X 2 X X X X X X X X 3 X X X X X X X X 4 X X X X X X X X 5 X X X X X X X X 6 X X X X X X X X 7 In the above instance this happens to be @array 8 x 8 in size, but sometimes it can be more or less. I will be feeding x values (columns) into one for split points and y values into how many rows the array has. Regards, Tom In reply to String to two dimensional array by tashworth
|
|