Question

What's the best way to parse a file in SpreadsheetML format with Perl? I've tried Spreadsheet::ParseExcel, but it doesn't recognize the format. Here's the error I get when trying that module:

No Excel data found in file

It looks like CPAN doesn't have a module that can parse it as far as I can see.

What's the easiest way to do it?

Was it helpful?

Solution

Searching CPAN for 'spreadsheet excel xml' results in Spreadsheet::ParseExcel, which mentions in the description:

The module cannot read files in the Excel 2007 Open XML XLSX format. See the Spreadsheet::XLSX module instead.

Worth to try...

OTHER TIPS

It's XML, use XML::Twig to process the file or XML::XPath to grab values.

The Spreadsheet::XLSX or SimpleXlsx Perl modules can be used to read the XLSX format.

Licensed under: CC-BY-SA with attribution
Not affiliated with StackOverflow
scroll top