- or download this
@rot_mat
- or download this
$rot_mat[0][0] = 'foo';
- or download this
return \@rot_mat;
- or download this
my $aref = &first_sub();
- or download this
my $bar = $aref->[0]->[0];
# hard to read
- or download this
my $baz = $aref->[0];
my $quux = $aref->[1];
...
# to $rot_mat[0][0] in the first sub
say 'yep' if $baz->[0] eq 'foo';
- or download this
foreach my $anon_array ( @{ $aref } ) { # dereference the main array
foreach my $value ( @{ $anon_array } ) { # dereference the anon arra
+y
say 'yep' if $value eq 'foo';
}
}
- or download this