[英]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.