in reply to DBI and two arrays question!

An array of hashes can get as big as you want, limited only by available memory and swap. If you're really worried, you could do the import line-by-line, as you suggest, if you're working with hundreds of megabytes of data.