in reply to printing CSV to file?

For csv, or any kind of delimited data, Text::Xsv is the way I go. Works real good.