简体   繁体   English

如何使用perl读取excel文件?

[英]How to read a excel file using perl?

How to read excel file in Perl CGI?如何在 Perl CGI 中读取 Excel 文件?

my $book = ReadData('$lBASEPATH/macro/$gProj/TCO_Excel_Export/TCO_Data_201931316467.xlsx');   

say 'A1: ' . $book->[1]{A1}; 

print $book;

Enclose the path to the .xlsx file using double quotes inside ReadData function.在 ReadData 函数中使用双引号将.xlsx文件的路径括起来。

my $book = ReadData("$lBASEPATH/macro/$gProj/TCO_Excel_Export/TCO_Data_201931316467.xlsx");  

say 'A1: ' . $book->[1]{A1}; 

print $book;

It is not possible to do interpolation with single quotes.不能用单引号进行插值。

声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM