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

Localize global variables used by YAML and YAML::Syck #438

Closed
bschmalhofer opened this issue Aug 2, 2021 · 2 comments
Closed

Localize global variables used by YAML and YAML::Syck #438

bschmalhofer opened this issue Aug 2, 2021 · 2 comments
Assignees

Comments

@bschmalhofer
Copy link

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 the local keyword in the relevant line. See also https://metacpan.org/dist/YAML/view/lib/YAML.pod#GLOBAL-OPTIONS .

Best regards,
Bernhard

@azumakuniyuki
Copy link
Member

hello, thanks for the report. I will check and test the code tomorrow :-)

@azumakuniyuki
Copy link
Member

Merged into master and 4-stable.

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