# A hash reference can be autovivified from an undefined value my $x; # Or assign an empty hash reference my $x = {};