NAME
YAML::As::Parsed - Read/Write YAML predictably
VERSION
version 0.07
SYNOPSIS
Assuming file.yml like this:
---
rootproperty: blah
section:
one: two
three: four
Foo: Bar
empty: ~
...
use YAML::As::Parsed;
# Open the config
my $yaml = YAML::As::Parsed->read( 'file.yml' );
for my $key ( keys %{ $yaml->[0]->{section} } ) {
print $key;
} # one, three, Foo, empty in that order
DESCRIPTION
This is an port of the YAML::Tiny module, it has been extended to replace perl's traditional unordered hashes that can change per evaluation, with predictable ordered hashes. The rational behind this is needing to derive content from a YAML string or file while keeping the order that it was defined.
METHODS
See YAML::Tiny for documentation.
SUPPORT
http://rt.cpan.org/NoAuth/ReportBug.html?Queue=YAML-As-Parsed
AUTHOR
LNATION
SEE ALSO
COPYRIGHT
This program is free software; you can redistribute it and/or modify it under the same terms as Perl itself.
The full text of the license can be found in the LICENSE file included with this module.