in reply to Re: Not a HASH reference using YAMLin thread Not a HASH reference using YAML
Array refs use square brackets rather than curly braces; and numeric indices rather than strings. So something like ->[0].
Of course, I haven't seen your data, so it's impossible for me to say at what point you need to do this.