in reply to CSV to Excel

Hi, I'd use Spreadsheet::WriteExcel

I've used that and it rocks. The API can be overwhelming at first, but read the synopsis and you'll get it.