# @lines is from the file my @bigarray; #the output array foreach (@lines) { my @temp = split ':', $_; push @bigarray, \@temp; } #### @{$bigarray[0]}; #access the first inner array ${$bigarray[2]}[3]; #access element 2,3