in reply to How to access Hash of hashes with multi-dimensional Array

use strict;

Global symbol "$temp" requires explicit package name

Note that %temp and $temp are different variables. $temp{foo} is used to access values in %temp; $temp->{foo} is used to access values in $temp.

package Cow { use Moo; has name => (is => 'lazy', default => sub { 'Mooington' }) } say Cow->new->name