Subject: | Broken roundtrip example |
The following perl data structure demonstrates a bug in YAML::Perl.
Converting to YAML produces besides lots of unini warnings some hard to
decipher YAML. Feeding this YAML back to YAML::Perl gives the error:
found duplicate anchor 002 first occurance
YAML::Perl::Node::Scalar(tag=, value=url) second occurance in
"<string>", line 3, column 17
Here's the Data::Dumper output of the structure:
$VAR1 = [
{
'thesiteurl' => bless( {
'FROM' => 'USER'
}, 'CPAN::URL' ),
'attempts' => [
{
'url' => $VAR1->{'history'}[0]{'thesiteurl'},
}
],
},
{
'thesiteurl' => bless( {
'FROM' => 'USER'
}, 'CPAN::URL' ),
'attempts' => [
{
'url' => $VAR1->{'history'}[1]{'thesiteurl'},
}
],
}
];
HTH,