-
Notifications
You must be signed in to change notification settings - Fork 38
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
Behavior change for undef params in 20180523.0 #124
Comments
@oschwald is there a reason you can't change that to: run([$^X]) |
@toddr, we've worked around the particular issue, but it was a backwards incompatible behavior change not explicitly mentioned in the docs. If I recall correctly, the reason why the code was like that is that we were conditionally passing in those params. Now we have to check whether we've passed them in. |
The whole interface is a big mess. I don't think I would make any of the existing decisions if I had to re-write it. |
Should we either make the docs reflect the current code, or adjust the code to match the docs? |
|
Before 20180523.0, something like
run([$^X], \undef, \undef, \undef, undef)
or evenrun([$^X], \undef, undef)
would run without an exception. As of the change introduced by #118, this fails withModification of a read-only value attempted at /home/greg/MaxMind/IPC-Run/lib/IPC/Run.pm line 1686.
. Changing:to:
fixes that particular error, but it later fails with other errors. This appears to be because the later code uses
ref
andlength
in ways incompatible withundef
being replaced byIPC::Run::Undef
.The text was updated successfully, but these errors were encountered: