Skip Menu |

Preferred bug tracker

Please visit the preferred bug tracker to report your issue.

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

Report information
The Basics
Id: 52730
Status: new
Priority: 0/
Queue: YAML-LibYAML

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

Bug Information
Severity: Important
Broken in: 0.32
Fixed in: (no value)



Subject: Cannot handle tied hashes
It looks like YAML::XS cannot dump hashes which are tied with Tie::IxHash correctly. A sample with an untied hash looks ok: $ perl -Mstrict -wle 'use YAML::XS;my $ref = { "howdy" => { a => 1 } };print YAML::XS::Dump( $ref );' --- howdy: a: 1 But with a tied one not: $ perl -Mstrict -wle 'use YAML::XS;use Tie::IxHash;tie( my %tied,"Tie::IxHash" );%tied = ("howdy" => { a => 1 } );print YAML::XS::Dump( \%tied );' --- {} This is the same problem like with YAML::Syck, see bug report http://rt.cpan.org/Public/Bug/Display.html?id=26182 Note that the good old YAML.pm may handle tied hashes without problems. Regards, Slaven