Skip Menu |

This queue is for tickets about the YAML-Perl CPAN distribution.

Report information
The Basics
Id: 44122
Status: new
Priority: 0/
Queue: YAML-Perl

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

Bug Information
Severity: Normal
Broken in: 0.02
Fixed in: (no value)



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,