in reply to Strange behaviour reading from hashref stored in array
If you don't want autovivification to happen, you can use modules such as Data::Diver to access elements of nested data structures.
Since this behaviour confuses some people, Perl 6 autovivifies only if in lvalue context (ie if stuff is being assigned to it).
|
|---|