Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

How can I read Excel files in Perl?

Tags:

excel

perl

I am looking for some examples/advice on how to write a Perl script to read data from an excel file then use the data read in (as a string hopefully) and pass it to another Perl file (as an argument).

The goal is to have a table in which the user can type some data (ftp destination or filename) into the table. Then my program will grab that data at do some automation with it. It does not have to be very elegant in implementation ... Just need it to read rows of data more or less.

like image 461
James Avatar asked Jan 25 '10 18:01

James


People also ask

How do I view XLXS files?

An XLSX file is a Microsoft Excel Open XML Format Spreadsheet file. Open one with Excel, Excel Viewer, Google Sheets, or another spreadsheet program.

How do I create a Perl in excel?

Step 1: Load the module Excel::Writer::XLSX. Step 2: Create an object $Excelbook which represents the whole Excel File. Step 3: Call write() method to add data to the worksheet.

Can we read excel file in Cypress?

Cypress doesn't supports . xlsx (excel file), so we need to convert data from excel file into JSON file, then fetch that data from JSON file in our test script.

How do I open a XLXS file in Linux?

Search the “sample file. xlc” file and click on the “Open” button located at the top right corner. And the excel file “sample file. xlc” will be opened, and it will display all the file data in the “LibreOffice Calc” app.


1 Answers

The Spreadsheet::ParseExcel module can read Excel files. The documentation includes examples how to use it.

like image 80
Lukáš Lalinský Avatar answered Oct 06 '22 01:10

Lukáš Lalinský