Hai,
The data you have in ray.txt is 6 entries in a row. So what do you mean by 2-D array???.
Give this code a try. Hope it works. $my2darr is hash, whose keys are 1,2,3,... . And the values are the rest of the entries on each line. This represents a 2D array.
To manipulate this hash use...