title: How to create variable array name in foreach loop for perl
body: <p>I would like to create an array inside foreach loop that change name itself</p>
  
  <pre><code>our $j = 1;
  
  foreach $key ( sort keys %hash ){
      @array1 = $hash{$key};
      $j++;
  }
  </code></pre>
  
  <p>How to i change array name with <code>$j</code>. Like every key my array name will change from <code>@array1, @array2, @array3....</code></p>