my $hashref = {}; # initializer not needed, but helps clarity $hashref->{a} = localtime; # can also be written $$hashref{a} print "$hashref->{a}\n"; @$hashref{a} = localtime; # this is a slice because of the @ print "$hashref->{a}\n";