简体   繁体   English

Spreadsheet :: ParseExcel不会读取文件

[英]Spreadsheet::ParseExcel won't read the file

I have a Perl script that I wrote and ran in windows that reads the contents of a .xls file using Spreadsheet::ParseExcel. 我有一个Perl脚本,我在Windows中编写并运行了该脚本,该脚本使用Spreadsheet :: ParseExcel读取.xls文件的内容。 When I transfer the xls file and the perl script over to a linux server to run it, it can't read any of the data in the xls file. 当我将xls文件和perl脚本转移到Linux服务器上运行它时,它无法读取xls文件中的任何数据。

I've created an xls file on the linux server using Spreadsheet::WriteExcel and then once it creates a file I can read it in with my other script that uses parse. 我已经使用Spreadsheet :: WriteExcel在linux服务器上创建了一个xls文件,然后一旦创建了文件,我就可以使用其他使用解析的脚本来读取它。 So essentially if it's created on linux it works, however I can't create a spreadsheet in windows and then drag it over and parse it in linux. 因此,从本质上讲,如果它是在Linux上创建的,则可以使用,但是我无法在Windows中创建电子表格,然后将其拖到Linux上进行解析。

Seems to be some kind of format issue but I'm wondering if there are any workarounds? 似乎是某种格式问题,但我想知道是否有任何解决方法?

It works now. 现在可以使用了。 I had tried so many different things and ended up uncommenting something that shouldn't have been. 我尝试了许多不同的事情,最后对不该做的事进行了注释。 Stupid mistake. 愚蠢的错误。

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

相关问题 无法在Perl中使用Spreadsheet :: ParseExcel读取Excel 2013文件 - Not able to read Excel 2013 file with Spreadsheet::ParseExcel in perl 电子表格:: PERL查询中的ParseExcel - Spreadsheet:: ParseExcel in PERL query 使用Spreadsheet :: ParseExcel时出错 - Error when using Spreadsheet::ParseExcel 在Spreadsheet :: ParseExcel中识别日期类型 - Identifying date types in Spreadsheet::ParseExcel Perl“无法通过包“ Spreadsheet :: ParseExcel :: Workbook”找到对象方法“工作表”” - Perl 'can't locate object method “worksheets” via package “Spreadsheet::ParseExcel::Workbook”' 使用Perl的Spreadsheet :: ParseExcel将Excel文件中的亚洲(日语/中文)字符提取为TSV格式 - Fetching Asian (Japanese / Chinese) characters from Excel file into TSV format using Perl's Spreadsheet::ParseExcel 为什么Perl的Spreadsheet :: ParseExcel永远不会从$ parser-> parse('test.xls')返回? - Why doesn't Perl's Spreadsheet::ParseExcel never return from $parser->parse('test.xls')? Perl Spreadsheet :: ParseExcel无法解析并返回undef - Perl Spreadsheet::ParseExcel cannot parse and return undef 如何使用Spreadsheet :: ParseExcel新建工作表副本 - How to make new copy a worksheet with Spreadsheet::ParseExcel 合并的单元格正在使用Spreadsheet :: ParseExcel在“保存”上取消合并 - Merged cells are unmerging on Save, using Spreadsheet::ParseExcel
 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM