title: Find key name in hash with only one key?
body: <p>If I have a hash</p>
  
  <pre><code>my %h = (
      secret =&gt; 1;
  );
  </code></pre>
  
  <p>and I know that is only is one key in the hash, but I don't know what it is called.</p>
  
  <p>Do I then have to iterate through that hash</p>
  
  <pre><code>my $key;
  foreach my $i (keys %h) {
      $key = $h{$i};
  }
  </code></pre>
  
  <p>Or are there a better way to get the name of the key?</p>