MichaelDaum/spreadsheet-parsexlsx

Can't locate object method "method" via package "next"

gavinehlers opened this issue · 3 comments

The latest version 0.34 triggers the following error:

Can't locate object method "method" via package "next" (perhaps you forgot to load "next"?) at /usr/lib/perl5/site_perl/5.38.2/Spreadsheet/ParseXLSX/Worksheet.pm line 22.

perl version v5.38.2

Code:

#!/usr/bin/perl -w

use Spreadsheet::ParseXLSX;
 
my $parser   = Spreadsheet::ParseXLSX->new();
my $workbook = $parser->parse('Book1.xlsx');

Hm, confirmed. However all tests pass.

Test::More seems to enable mro. However the thing should work even without. see https://metacpan.org/pod/mro#next::method.

Quick fix for your would be to "use mro;"

Will replace it with the more standard SUPER way of calling parents.

Thanks Michael - I can confirm that your proposed temporary solution works.