in reply to Re^2: How to create array from filein thread How to create array from file
Now would be a good moment to look at Text::CSV_XS.