my %hash = (id => "123", fname => "Fred); my $hashref = \%hash; print "$hash{id}\n"; print "$hashref->{id}\n";