Subject: | Unquoted tilde becomes literal tilde (not undef) if there is a comment on the same line |
Date: | Tue, 02 Jun 2015 14:53:10 +0200 |
To: | bug-YAML-Tiny [...] rt.cpan.org |
From: | BP Jonsson <bpj [...] melroch.se> |
Unquoted tilde becomes literal tilde (not undef) if there is a
comment on the same line.
Bug or feature?
use YAML::Tiny qw[ Load ];
use Data::Dump qw[ dd ];
dd $YAML::Tiny::VERSION;
for my $yaml ( qq{foo: ~\n# Comment}, qq{foo: ~ # Comment} ) {
dd $yaml;
dd Load( $yaml );
}
# 1.67
# "foo: ~\n# Comment"
# { foo => undef }
# "foo: ~ # Comment"
# { foo => "~" }
/bpj