#!/usr/bin/env perl
use warnings;
use strict;
use Excel::Writer::XLSX;
my $workbook = Excel::Writer::XLSX->new('perl.xlsx');
my $worksheet = $workbook->add_worksheet();
$worksheet->write_formula('A1', '=SUM(1, 2, 3, 4)');
$workbook->close();
直到現在,這與LibreOffice正常工作。但是今天這不再工作(A1
中的值是0
) - 可能是由於某些LibreOffice更新(LibreOffice 3.5 Build-ID:350m1(Build:402))。Excel :: Writer :: XLSX:LibreOffice的問題
Excel::Writer::XLSX文檔的以下部分中的occasionally
是否涉及這種情況?
If required, it is also possible to specify the calculated value of the formula. This is occasionally necessary when working with non-Excel applications that don't calculate the value of the formula. The calculated $value is added at the end of the argument list