CC: | FLORA [...] cpan.org |
Subject: | anchors and aliases: parser error on a map |
Maybe the same bug as 29678 but maybe not. YAML trips over an anchor for
a map. YAML::XS has a different bug (will report over there). YAML::Syck
behaves OK.
% cat anchor_and_alias_04.yml
---
pl:
&pl_or_make
eexpect:
timeout: 5
% ysh -MYAML < anchor_and_alias_04.yml
YAML Error: Expected separator '---'
Code: YAML_PARSE_ERR_NO_SEPARATOR
Line: 3
Document: 2
at [...]
% ysh -MYAML::XS < anchor_and_alias_04.yml
$VAR1 = {
'pl' => $VAR1
};
% ysh -MYAML::Syck < anchor_and_alias_04.yml
$VAR1 = {
'pl' => {
'eexpect' => {
'timeout' => '5'
}
}
};