Skip Menu |

Preferred bug tracker

Please visit the preferred bug tracker to report your issue.

This queue is for tickets about the YAML CPAN distribution.

Report information
The Basics
Id: 32875
Status: resolved
Priority: 0/
Queue: YAML

People
Owner: Nobody in particular
Requestors: SREZIC [...] cpan.org
Cc:
AdminCc:

Bug Information
Severity: Important
Broken in: 0.66
Fixed in: 1.20



Subject: Roundtrip failure (problematic hash key?)
The attached script fails with YAML.pm with the message: YAML Error: Couldn't parse single line value Code: YAML_PARSE_ERR_SINGLE_LINE Line: 2 Document: 1 at /usr/local/lib/perl5/site_perl/5.8.8/YAML.pm line 33 Exitcode 255 With YAML::Syck it works as expected. Regards, Slaven
Subject: yamlbug.pl
#!/usr/bin/perl -w use YAML qw(Load Dump); #use YAML::Syck qw(Load Dump); $x = [{'gegen die Einbahnstraßenrichtung, ggfs. schieben' => 1}]; Load Dump $x; __END__
On Sat Feb 02 05:48:49 2008, SREZIC wrote: Show quoted text
> The attached script fails with YAML.pm with the message: > > YAML Error: Couldn't parse single line value > Code: YAML_PARSE_ERR_SINGLE_LINE > Line: 2 > Document: 1 > at /usr/local/lib/perl5/site_perl/5.8.8/YAML.pm line 33 > Exitcode 255 > > With YAML::Syck it works as expected. >
Just another note: it seems that the "," in the hash key is causing the problem.
This issue has been copied to: https://github.com/ingydotnet/yaml-pm/issues/88 please take all future correspondence there. This ticket will remain open but please do not reply here. This ticket will be closed when the github issue is dealt with.
fixed in 1.20