YAML.pm bug?
use strict; use warnings;
use Data::Dumper;
use YAML;
my $config = {
default => [ 1, { '*' => 1 }, ],
deny => ['script'],
};
my $yaml = Dump($config);
print $yaml;
print Dumper( Load($yaml) );
output:
---
default:
- 1
- '*': 1
deny:
- script
YAML Error: Couldn't parse single line value
Code: YAML_PARSE_ERR_SINGLE_LINE
Line: 5
Document: 1
at /usr/local/share/perl/5.8.7/YAML.pm line 60
This code works fine with YAML::Syck
.