D
DanchikPU
Hi,
I am attempting to read in two-dimentional array from a file, but my
data is being treated as a flat array.
The data file looks something like this:
(['abcd','qwerty','L','1234'],
['abce','qwerty','L','1234'],
['abcf','qwerty','L','1234'],
['abcg','qwerty','L','1234']);
In the code, I am doing to standart
open(DATA, "foo.txt")
@foo=<DATA>
close(DATA);
Accessor $foo[0] will return the first line, but $foo[0][0] fails
The data is formatted perfectly, I have tried pasting it directly into
the code and everything works, it's only when I try to read it in that
I fail.
Thanks in advance for your help!
~d
I am attempting to read in two-dimentional array from a file, but my
data is being treated as a flat array.
The data file looks something like this:
(['abcd','qwerty','L','1234'],
['abce','qwerty','L','1234'],
['abcf','qwerty','L','1234'],
['abcg','qwerty','L','1234']);
In the code, I am doing to standart
open(DATA, "foo.txt")
@foo=<DATA>
close(DATA);
Accessor $foo[0] will return the first line, but $foo[0][0] fails
The data is formatted perfectly, I have tried pasting it directly into
the code and everything works, it's only when I try to read it in that
I fail.
Thanks in advance for your help!
~d