in reply to Hash reference searching

I reckon since you have $HASH{$random_number} and $HASH_REF->{$random_number} both values defined then you be better off checking using the defined and not the exists function...