http://www.perlmonks.org?node_id=996922


in reply to perl hash to CSV using Text::CSV_XS

Do you really need to store an array of hashes in memory? It might be more 'efficient' to process the data record by record as it is read from the source.

And if it's not that many records, then I wouldn't worry much about which is more efficient.