in reply to Re^2: Keeping Order with YAML::XS
in thread Keeping Order with YAML::XS
{ arguments => [{ value => "test" }], options => [ { param => "i", value => 1001 }, { param => "f" }, { param => "x", value => "eyes" }, ], path => "/export/home/frank", }
IE. the top level items (arguments,options,path) are in a hash, which is an unordered set in Perl. You've lost your ordering on input, not on output. Unless you're talking about the options? In which case both formats are equivalent, at least to the YAML::XS loader which creates the same data structures in both cases.
In what external context does the yaml produced by YAML::XS cause a problem? Because both formats generate the same data structures in Perl and therefore should be interchangeable without issue.
|
|---|
| Replies are listed 'Best First'. | |
|---|---|
|
Re^4: Keeping Order with YAML::XS
by walkingthecow (Friar) on Jul 29, 2013 at 08:08 UTC | |
by Corion (Patriarch) on Jul 29, 2013 at 08:10 UTC | |
by Loops (Curate) on Jul 29, 2013 at 09:40 UTC | |
by Anonymous Monk on Jul 29, 2013 at 09:44 UTC | |
by Loops (Curate) on Jul 29, 2013 at 09:57 UTC | |
by Anonymous Monk on Jul 29, 2013 at 10:05 UTC | |
|