in reply to Problem in Parsing XLSX

Have you tried adding more print statements to find out where your program stops?

The most likely suggestion would be that the seventh workbook is empty, in the sense that it has no filled rows or columns:

my $worksheet = $workbook->worksheet(6);

I really, really recommend using a name-based approach instead of using indices to access the sheets if you have problem with converting from one-based offsets to zero-based offsets.