in reply to Output to an Excel Document

Take a look at Spreadsheet::WriteExcel and Spreadsheet::WriteExcel::Simple.