I successfully parsed the xls file using Spreadsheet::ParseExcel::SaveParser and modified it using Spreadsheet::WriteExcel .
However, working with the xlsx file is a completely different matter. I am trying to figure out how to work with Spreadsheet::XLSX for parsing and how to make it work with Excel::Writer::XLSX . Spreadsheet::ParseExcel::SaveParser has a SaveAs() method that allows you to apply the Spreadsheet::WriteExcel in the analyzed xml file, but I donβt understand how to make it work with the xlsx file
edit: when using Spreadsheet::ParseExcel::SaveParser and Spreadsheet::WriteExcel I can write:
#!/usr/bin/perl -w use strict; use Spreadsheet::ParseExcel; use Spreadsheet::ParseExcel::SaveParser;
I would like to do the same with xlsx files. so I am trying to use Spreadsheet::XLSX and Excel::Writer::XLSX . Instead
my $parser = new Spreadsheet::ParseExcel::SaveParser; my $template = $parser->Parse('template.xls');
I use
my $excel = Spreadsheet::XLSX -> new ('test.xlsx');
Now, after parsing the xlsx file, I would like to add some data to it, and I don't know how to do it. As you can see above when using Spreadsheet::ParseExcel::SaveParser , I used the SaveAs() function but Spreadsheet::XLSX does not have a SaveAs() method. So, how can I add data to the analyzed xlsx file?
I could not find the answer to my question in this link .
Thank you for your help :)
perl excel xlsx
Miso
source share