https://metacpan.org/pod/Spreadsheet::WriteExcel
workbook
- new($filename):得到一个新的workbook
my $workbook = Spreadsheet::WriteExcel->new(‘filename.xls’); - add_worksheet():得到一个空白的worksheet
my $worksheet = $workbook->add_worksheet();
worksheet
- write($row, $column, $token, $format):向worksheet写data
$worksheet->write(0, 0, ‘Hi Excel!’);