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

quoted version number in 5.39.1 causes error instead of no-op #7

Open
wants to merge 3 commits into
base: master
Choose a base branch
from

Conversation

demerphq
Copy link

Quoting a version number means the parameter gets passed to import() instead of to VERSION(), and in 5.39.1 perl dies if an argument is passed to a missing import() as in this case. In older perls it was silently ignored. Thus this used to be a no-op.

In 5.39.1 passing an argument to a missing import is an error.
When the version is quoted it is treated as an argument to
import(), but perl special cases import so when it is missing
it silently ignores the call entirely. (Exporter::import would
do a version check.)

Simply removing the quotes makes 5.39.1 happy.
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.

None yet

1 participant