in reply to error message not understood

This sounds as if Spreadsheet::WriteExcel is not installed. Did you install it?

If not, typing cpan Spreadsheet::WriteExcel or ppm Spreadsheet::WriteExcel could install it. Alternatively, see Yes, even you can use CPAN