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

$item = \$array[0];

Why are you taking a reference here?

$item = $array[0];
$item is already a hash ref, as the following will show you:
print "$_: $item->{$_}\n" foreach keys %{$item};

Liz