yaml-perl6 icon indicating copy to clipboard operation
yaml-perl6 copied to clipboard

double-quoted string value yields undefined (Any)

Open dmaestro opened this issue 7 years ago • 0 comments

dmaestro$ perl6 -MYAML -e 'dd yaml.load("test.yml".IO.slurp)'
${:one(1), :three(Any), :two("one two")}
dmaestro$ perl -MYAML::XS -MData::Dumper -E 'undef $/; open my $yaml, "<", "test.yml"; my $hash = Load(<$yaml>); print Dumper($hash)'
$VAR1 = {
          'three' => 'one two three',
          'one' => 1,
          'two' => 'one two'
        };
dmaestro$ cat test.yml
---
one: 1
two: one two
three: "one two three"

The double-quoted string is parsed, but gives an undefined value.

dmaestro avatar Feb 27 '19 16:02 dmaestro