Help for this page

Select Code to Download


  1. or download this
    @rot_mat
    
  2. or download this
    $rot_mat[0][0] = 'foo';
    
  3. or download this
    return \@rot_mat;
    
  4. or download this
    my $aref = &first_sub();
    
  5. or download this
    my $bar = $aref->[0]->[0];
    # hard to read
    
  6. 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';
    
  7. 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';
      }
    }
    
  8. or download this