Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

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

Closed
gavinehlers opened this issue Mar 19, 2024 · 3 comments
Closed

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

gavinehlers opened this issue Mar 19, 2024 · 3 comments
Assignees

Comments

@gavinehlers
Copy link

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');
@MichaelDaum
Copy link
Owner

Hm, confirmed. However all tests pass.

@MichaelDaum MichaelDaum self-assigned this Mar 19, 2024
@MichaelDaum
Copy link
Owner

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.

@gavinehlers
Copy link
Author

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

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants