|
NAMEYAML::PP::Schema::Tie::IxHash - (Deprecated) Schema for serializing ordered hashes SYNOPSIS use YAML::PP;
use Tie::IxHash;
my $yp = YAML::PP->new( schema => [qw/ + Tie::IxHash /] );
tie(my %ordered, 'Tie::IxHash');
%ordered = (
U => 2,
B => 52,
);
my $yaml = $yp->dump_string(\%ordered);
# Output:
---
U: 2
B: 52
DESCRIPTIONThis is deprecated. See the new option "preserve" in YAML::PP. This schema allows you to dump ordered hashes which are tied to Tie::IxHash. This code is pretty new and experimental. It is not yet implemented for loading yet, so for now you have to tie the hashes yourself. Examples:
METHODS
|