title: Perl : creating array of known size
body: <p><br>
  I have to store data from request runned with Parallel::ForkManager.<br>
  But it comes not in order, I mean, I poll all ports of a switch, but some of them answer faster than others. So, I don't know how to save it, to display it later.</p>
  
  <p>Can I do like that ?</p>
  
  <pre><code>my @array = ();
  $array[10] = "i am a string corresponding to port 10"
  $array[2] = "the one for the port 2"
  ...
  print @array;
  </code></pre>
  
  <p>Or should I use a %hash with number of port as keys, but it seems not the best.<br>
  Thank you.</p>