Subject: | Parse error with inline arrays without space after comma |
The following YAML document may be parsed by YAML.pm and YAML::XS, but fails with YAML::Syck:
$ cat bla.yaml
---
ports: ['*:80','*:443']
$ ysh -MYAML < bla.yaml
$VAR1 = {
'ports' => [
'*:80',
'*:443'
]
};
$ ysh -MYAML::XS < bla.yaml
$VAR1 = {
'ports' => [
'*:80',
'*:443'
]
};
$ ysh -MYAML::Syck < bla.yaml
Syck parser (line 2, column 22): syntax error at /opt/perl-5.18.4/lib/site_perl/5.18.4/x86_64-linux/YAML/Syck.pm line 75, <STDIN> line 2.
Adding a space after the comma fixes the problem.