You can use something like the following:
# Spreadsheet::WriteExcel::FromDB code.
...
open FH, '>test.xls' or die "Couldn't open excel file: $!\n";
binmode FH;
print FH $ss->as_xls;
close FH;
See the perlopentut manpage, and the print() and open() functions in the perlfunc manpage (or the equivalent Windows docs).
John.
--
|