title: Multiply all values in a %hash and return a %hash with the same structure
body: <p>I have some JSON stored in a database column that looks like this:</p>
  
  <pre><code>pokeapi=# SELECT height FROM pokeapi_pokedex WHERE species = 'Ninetales';
  -[ RECORD 1 ]------------------------------------------
  height | {"default": {"feet": "6'07\"", "meters": 2.0}}
  </code></pre>
  
  <p>As part of a 'generation' algorithm I'm working on I'd like to take this value into a %hash, multiply it by <code>(0.9..1.1).rand</code> (to allow for a 'natural 10% variance in the height), and then create a new %hash in the same structure. My <code>select-height</code> method looks like this:</p>
  
  <pre><code>method select-height(:$species, :$form = 'default') {
      my %heights = $.data-source.get-height(:$species, :$form);
  
      my %height = %heights * (0.9..1.1).rand;
  
      say %height;
  }
  </code></pre>
  
  <p>Which actually calls my <code>get-height</code> routine to get the 'average' heights (in both metric and imperial) for that species.</p>
  
  <pre><code>method get-height (:$species, :$form) {
      my $query = dbh.prepare(qq:to/STATEMENT/);
             SELECT height FROM pokeapi_pokedex WHERE species = ?;
          STATEMENT
  
      $query.execute($species);
  
      my %height = from-json($query.row);
      my %heights = self.values-or-defaults(%height, $form);
  
      return %heights;
  }
  </code></pre>
  
  <p>However I'm given the following error on execution (I assume because I'm trying to multiple the hash as a whole rather than the individual elements of the hash):</p>
  
  <pre><code>$ perl6 -I lib/ examples/height-weight.p6
  {feet =&gt; 6'07", meters =&gt; 2}
  Odd number of elements found where hash initializer expected:
  Only saw: 1.8693857987465123e0
    in method select-height at /home/kane/Projects/kawaii/p6-pokeapi/lib/Pokeapi/Pokemon/Generator.pm6 (Pokeapi::Pokemon::Generator) line 22
    in block &lt;unit&gt; at examples/height-weight.p6 line 7
  </code></pre>
  
  <p>Is there an easier (and working) way of doing this without duplicating my code for each element? :)</p>