in reply to Hash not getting updated

%hash = ($temp => $temp);
$hash{$temp}=$temp;