title: How to print one array of a multidimensional array in Perl?
body: <pre><code>#!usr/bin/perl
  @array = ();
  open(myfile,"sometext.txt");
  while(&lt;myfile&gt;)
  {
      chomp;
      push(@array,[split(" ")]);
  }
  close(myfile);
  print @array[0];
  </code></pre>
  
  <p>Instead of printing the elements of the first array in this multidimensional array, it outputs the hexadecimal(?) pointer reference. If anyone knows how I can print this array, please post how and it will be greatly appreciated.</p>