我正在使用Spreadsheet::WriteExcel将数据写入excel。
我已经使用了每行write_row()。
当我尝试写有一行数据(=),它抛出一个错误说:无法解析公式:=,因为Excel中认为这是公式。
我需要使用数组作为一行写数据,所以有没有办法做到这一点?
下面的代码片段:
使用Spreadsheet写入write_row时发生错误:: WriteExcel
use Spreadsheet::WriteExcel;
my $workbook = Spreadsheet::WriteExcel->new("../tmp/op.xls");
my $worksheet = $workbook->add_worksheet();
my @data = ('1','1','=',"testdata");
$worksheet->write_row("A1", \@data);
$workbook->close();
输出:
Couldn't parse formula: = at
感谢您的答复,但我想要的东西与write_row()函数的作品,并避免公式错误。 – Ganesh