in reply to Slurping strings from text file and pushing to array?
If you're dealing with CSV, then use a module: either Text::CSV or Text::CSV_XS. Note that there is no standard definition of a CSV file but there is a MIME type for it.