Skip to content

double-quoted string value yields undefined (Any) #5

Open
@dmaestro

Description

@dmaestro
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.

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions