Closed perlpunk closed 6 years ago
Like @jhthorsen suggsted on IRC, it might make sense to also load True
and False
additionally to true
and false
, since that's also quite common.
I see that a lot in ansible files.
As discussed with @ingydotnet, it should be configurable which boolean class to use:
$YAML::XS::Boolean = 'boolean'; # or JSON::PP
working on how to get a string from a package variable in XS now...
got it working, I have to test a bit more, though. thanks to @hoehrmann for the help with getting the package var as a string.
@ingydotnet please review
squashed the commits, applied and released YAML-LibYAML-0.66_001.tar.gz
When
$YAML::XS::Booleans
is true, it will load and dumpJSON::PP::Boolean
objects.Currently, you have to load JSON::PP yourself. This should be done in XS, too.Edit: JSON::PP will be loaded automatically now.