-
Notifications
You must be signed in to change notification settings - Fork 26
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
Localize global variables used by YAML and YAML::Syck #438
Comments
hello, thanks for the report. I will check and test the code tomorrow :-) |
azumakuniyuki
added a commit
that referenced
this issue
Aug 2, 2021
azumakuniyuki
added a commit
that referenced
this issue
Sep 29, 2021
#438 Add `local` to `$YAML::*` variables. Thanks to @bschmalhofer
azumakuniyuki
added a commit
that referenced
this issue
Sep 29, 2021
Merged into |
azumakuniyuki
added a commit
that referenced
this issue
Sep 29, 2021
azumakuniyuki
added a commit
that referenced
this issue
Sep 29, 2021
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Hi,
in https://metacpan.org/release/AKXLIX/Sisimai-v4.25.11/source/lib/Sisimai/Data/YAML.pm I noticed that the global package variables of YAML and YAML::Syck are set. The changed variables will have an effect outside of the sub
dump()
. I think it would be better to localize changes to these variables. This can be done by adding thelocal
keyword in the relevant line. See also https://metacpan.org/dist/YAML/view/lib/YAML.pod#GLOBAL-OPTIONS .Best regards,
Bernhard
The text was updated successfully, but these errors were encountered: