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

Fix issue with Perl>5.36 #509

Merged
merged 6 commits into from
Dec 3, 2024
Merged

Fix issue with Perl>5.36 #509

merged 6 commits into from
Dec 3, 2024

Conversation

Juke34
Copy link
Collaborator

@Juke34 Juke34 commented Dec 3, 2024

No description provided.

@Juke34
Copy link
Collaborator Author

Juke34 commented Dec 3, 2024

AGAT can now be used with perl >=5.36
AGAT::AGAT is playing a central role. Scripts load this module and then all others are loaded by it because all other modules use :

sub import {
 AGAT::MODULE->export_to_level(2, @_); # to be able to load the EXPORT functions when called from one level up;

but since perl version 5.36 it does not work anymore. To fix the problem I removed the export_to_level statement from other modules and tell explicitly to AGAT::AGAT to load functions from theses module using:

sub import {
    AGAT::AGAT->export_to_level(1, @_); # to be able to load the EXPORT functions when direct call; (normal case)
    AGAT::MODULE->export_to_level(1, @_); # to be able to load the EXPORT functions when direct call; (normal case)
}

@Juke34 Juke34 merged commit 4ca5e04 into master Dec 3, 2024
4 of 6 checks passed
@Juke34 Juke34 deleted the perl branch December 3, 2024 16:09
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

Successfully merging this pull request may close these issues.

1 participant