in reply to Re^2: how do i parse a yaml set with perl ( can't )
in thread how do i parse a yaml set with perl

The order doesn't matter, but the elements are also simple values... why not make it an array?

If you're making it a hash, then your values are used as the keys of the hash and you have to make up and store dummy values to complete the hash structure. That's confusing and inefficient.

  • Comment on Re^3: how do i parse a yaml set with perl ( can't )

Replies are listed 'Best First'.
Re^4: how do i parse a yaml set with perl ( can't )
by david2008 (Scribe) on Feb 09, 2014 at 13:08 UTC
    I use it internally as a set. It is true that i can just represent it as an array and internally convert it to a hash. This is a good point