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