Mega Code Archive

 
Categories / Perl / Array
 

Using the - to reference the elements of a two-dimensional array

$array = [     ["A", "F"],     ["B", "E", "G"],     ["C", "D"], ]; print $array->[1][1];