title: Perl - passing arguments to a subroutine as hash key-value pairs problem
body: <p>I have to pass two references as arguments to a subroutine (buildRanges) as hash key-value pairs as show below  </p>
  
  <p>Example:</p>
  
  <pre><code>@array = (“0A0”, “005”, “001”, “004”, “0BC”, “004”, “002”, “001”);
  @ranges = ();
  $numRanges = buildRanges(VALUES =&gt; \@array, REF_RANGES=&gt;\@ranges);
  </code></pre>
  
  <p>My question is<br>
  1. is the syntax for the sub-routine call above is correct?<br>
  2. what are VALUES and REF_RANGES?</p>
  
  <p>franckly speaking, i couldnt understand the sub-routine call, but i have been told to use that call only.</p>
  
  <p>Thanks.</p>
  
  <p>KK</p>