Using the -> to reference the elements of a two-dimensional array : Multidimensional Arrays « Array « Perl
- Perl
- Array
- Multidimensional Arrays
Using the -> to reference the elements of a two-dimensional array
$array = [
["A", "F"],
["B", "E", "G"],
["C", "D"],
];
print $array->[1][1];
Related examples in the same category