title: Perl: make values %hash remember the position in the code where the value was
body: <p>In Perl:</p>
  
  <pre><code> my %members = ( "fools"      =&gt; 6,                      
                   "monsters"    =&gt; 2,                      
                   "weirdos"       =&gt; 1,                      
                   "coders"    =&gt; 1,                                        
                   "betrayers"     =&gt; 1,   );     
  </code></pre>
  
  <p>When I write:</p>
  
  <pre><code> my @values_members = values %members;
  </code></pre>
  
  <p>The position of the elements in the array will not be 6, 2, 1, 1, 1 (the position "as they appear" in the code). It will be random or close to random.</p>
  
  <p>I want a function such that:</p>
  
  <pre><code> my values_members = get_values_with_position_as_appears_in_code ( %members );
  </code></pre>
  
  <p>gives</p>
  
  <pre><code> ( 6, 2, 1, 1, 1 );
  </code></pre>
  
  <p>Is this possible?</p>