title: Read CSV file and save in 2 d array
body: <p>I am trying to read a huge CSV file in 2 D array, there must be a better way to split the line and save it in the 2 D array in one step :s
  Cheers</p>
  
  <pre><code>my $j = 0;
  while (&lt;IN&gt;) 
  {
  
      chomp ;
      my @cols=();
      @cols   = split(/,/); 
      shift(@cols) ; #to remove the first number which is a line header
      for(my $i=0; $i&lt;11; $i++) 
      {
         $array[$i][$j]  = $cols[$i];
      }        
      $j++;    
  }
  </code></pre>