Subject: | Serializing array-elements with dashes |
Array elements like "something - " aren't parsed
correctly.
Here's the shortest script I could reproduce it with:
perl -wle'
use YAML;
print "VERSION: $YAML::VERSION";
my $x = [ { "test - " => 23 } ];
my $y = Dump $x;
print $y;
my $z = Load($y);
'
VERSION: 0.35
--- #YAML:1.0
- 'test - ': 23
--- !perl/YAML::Error
code: YAML_PARSE_ERR_SINGLE_LINE
msg: Couldn't parse single line value
line: 2
document: 1
...
at -e line 6