No, just push the lines of the file to an array will not make a two-dimensional array. It will make an array of strings. However, if your data file is written as proper Perl, you should be able to just say: