On Aug 17, 2005, at 9:51 PM, basi wrote: > Hello, > > How does one tell YAML to use an array substructure rather than a > hash? <snip> > {"an"=> > [ "at sf", > "fc di", > "ps"=> > ["na vb", > "ex anEx"]], > "ps"=> > ["na no", > "ex otherEx", > "pr pro"]]], > "in"=> > ["at sf", > "fc lo"] > } YAML::dump() might be helpful: require 'yaml' hash = {"an"=> [ "at sf", "fc di", {"ps"=> ["na vb", "ex anEx"]}], "ps"=> ["na no", "ex otherEx", "pr pro"], "in"=> ["at sf", "fc lo"] } puts YAML::dump(hash) That will show you the yaml representation of the 'hash' data structure (I know my 'hash' is different from what you posted, but yours didn't parse). Hope this helps, Ryan