嗨,目前我正在使用Spreadsheet :: Read解析我的excel文件。每当我尝试打印出我的最大行的值时,它将导致34但是在打开文件时我发现它有大约800行。这是我的代码:
#!/usr/bin/perl
use common::sense;
use Spreadsheet::Read qw( ReadData );
my $xl_file = "excel_file.xlsx";
my $workbook = Spreadsheet::Read->new( $xl_file );
my $worksheet = $workbook->sheet(1);
my $maxcol = $worksheet->{maxcol};
my $maxrow = $worksheet->{maxrow};
say $maxrow; #prints out 32 but my files contains 800 rows