Spreadsheet :: Read maxrow不正确

时间:2017-11-02 20:38:32

标签: excel perl

嗨,目前我正在使用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

0 个答案:

没有答案