in reply to exists on hash autovivifies right?

You can protect against it with || (at the cost of some ugliness), like so:
# instead of: if (exists $x->{a}[0]{c}) { if (exists ${ ${ $x->{a} || [] }[0] || {} }{c}) {

Replies are listed 'Best First'.
A reply falls below the community's threshold of quality. You may see it by logging in.