[英]Unable to read libra excel file using Spreadsheet::XLSX module in Perl
I am using Spreadsheet::XLSX
to read excel file which has been created on Linux machine. 我正在使用
Spreadsheet::XLSX
读取在Linux机器上创建的excel文件。 But at the time of creating object using Spreadsheet::XLSX->new("abc.xlsx");
但是在使用
Spreadsheet::XLSX->new("abc.xlsx");
创建对象时Spreadsheet::XLSX->new("abc.xlsx");
I am getting following warning messages: 我收到以下警告消息:
Use of uninitialized value within @styles in hash element at /usr/share/perl5/Spreadsheet/XLSX.pm line 189. Use of uninitialized value $thisstyle in pattern match (.m//) at /usr/share/perl5/Spreadsheet/XLSX.pm line 190.
After this while reading the content of the excel file using the created object I am unable to read the content correctly 之后,在使用创建的对象读取excel文件的内容时,我无法正确读取内容
Can someone please help me with the following? 有人可以为我提供以下帮助吗?
The warning you are seeing seems to be somewhat common: https://rt.cpan.org/Public/Bug/Display.html?id=67755 您看到的警告似乎有些常见: https : //rt.cpan.org/Public/Bug/Display.html?id=67755
I don't know if your having an issue with the document and can't tell however, you can silence the warnings via 我不知道您是否对文档有疑问,但是不能告诉您,您可以通过以下方式使警告静音
$SIG{'__WARN__'} = sub { warn $_[0] unless (caller eq "Spreadsheet::XLSX"); }
声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.