http://www.perlmonks.org?node_id=283652


in reply to Reference to a hash in an array of hashes

$array[0] is already a reference to the hash. By doing $item = \$array[0], you're creating a reference to a reference. Try something like this...
$array[0]{'key'} = "testline"; $item = $array[0]; print $item->{key}; #will print "testline"
or if you prefer...
%item = %{$array[0]}; print $item{key};
Cheers,
Ben.