I'm dumping a data structure to YAML with the YAML::XS
library:
foo => {
bar => [
{...},
{...},
],
baz => [
{...},
{...},
],
...
}
It seems like YAML::XS's default behavior is to sort the keys before dumping them, but this is not what I want. Humans will have to read and edit the output of this script, so readability is a concern. Is there a way to control the order that the keys are dumped out so that foo->{baz}
would come before foo->{bar}
?