Text::CSV_XS is a module to create and parse CSV files very quickly, without skipping any of the hard stuff. By hard-stuff I mean proper quoting, escaping, dealing with cross-platform line-breaks (although sadly, it doesn't deal well with Mac line-breaks), etc.