in reply to Re^2: Not a HASH reference using YAML
in 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.

perl -E'sub Monkey::do{say$_,for@_,do{($monkey=[caller(0)]->[3])=~s{::}{ }and$monkey}}"Monkey say"->Monkey::do'