If I have a hash
my %h = ( secret => 1; );
and I know that is only is one key in the hash, but I don\'t know what it is called.
my ($key) = keys %h;
As you're using list context on both sides of the assignment operator, the first item in the keys list gets assigned to $key.