In addition to haukex good comment, look at this line:
for(my $k=2; $k<521754; $k++)
In the case that your Excel sheet does not have 521754 rows, consider using $Sheet2->UsedRange->Rows instead:
Update: See the corrections by haukex below!
my $used_rows = $Sheet2->UsedRange->Rows(); for my $k (2..$used_rows) { }
In reply to Re: Xls reader
by Corion
in thread Xls reader
by sainky
| For: | Use: | ||
| & | & | ||
| < | < | ||
| > | > | ||
| [ | [ | ||
| ] | ] |