in reply to Yet another array problem
So, not only is it operating on the wrong variable, it also destroys the array that had the correct information. Overwriting variables like this is not generally a good idea.
If you don't need the intermediate result learn how to chain the operations together, or how to dereference things correctly. I'd suggest placing the data read from the file into a two dimensional array as you're reading it in, rather than keeping the lines as they were read, and then later attempting to split everything out.
-Scott
|
|---|
| Replies are listed 'Best First'. | |
|---|---|
|
Re^2: Yet another array problem
by Angharad (Pilgrim) on Jul 29, 2005 at 17:26 UTC |