簡體   English   中英

無法在Perl中使用Spreadsheet :: XLSX模塊讀取libra excel文件

[英]Unable to read libra excel file using Spreadsheet::XLSX module in Perl

我正在使用Spreadsheet::XLSX讀取在Linux機器上創建的excel文件。 但是在使用Spreadsheet::XLSX->new("abc.xlsx");創建對象時Spreadsheet::XLSX->new("abc.xlsx"); 我收到以下警告消息:

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.

之后,在使用創建的對象讀取excel文件的內容時,我無法正確讀取內容

有人可以為我提供以下幫助嗎?

您看到的警告似乎有些常見: https : //rt.cpan.org/Public/Bug/Display.html?id=67755

我不知道您是否對文檔有疑問,但是不能告訴您,您可以通過以下方式使警告靜音

$SIG{'__WARN__'} = sub { warn $_[0] unless (caller eq "Spreadsheet::XLSX"); }

暫無
暫無

聲明:本站的技術帖子網頁,遵循CC BY-SA 4.0協議,如果您需要轉載,請注明本站網址或者原文地址。任何問題請咨詢:yoyou2525@163.com.

 
粵ICP備18138465號  © 2020-2024 STACKOOM.COM