1 | @LoL2D = ( [1,2], [1,2,3] ); # Constructs a 2D array |
2 | $ref_to_LoL2D = [ [1,2], [1,2,3] ]; # creates a pointer to a 2D array |
3 | $arraypt =\@{$LoL2D[$i]}; # extracts a slice ($i'th row) from $LoL2D[$i][$j] |
4 | $$arraypt->[$j] is equivalent to $LoL2D[$i][$j] |
5 | Perl5 is operationally like Fortran and acts as though right most elements are least significant and stored "consecutively" |
6 | If one has defined attributes for students with components such as $student{"grade"}, then $student[$classmember]{"grade"} is way to address a class of students |