Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Parse error with inline arrays without space after comma [rt.cpan.org #116654] #25

Open
toddr opened this issue May 11, 2017 · 0 comments

Comments

@toddr
Copy link
Member

toddr commented May 11, 2017

Migrated from rt.cpan.org#116654 (status was 'new')

Requestors:

From [email protected] on 2016-08-02 09:15:51:

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.
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant