in reply to Access the Keys of a Hash Reference Without a For Loop

I am not sure if this is what you are looking for:
my @keys = keys %{$hash_ref};