Help for this page

Select Code to Download


  1. or download this
    # Turning an arrayref into an array
    my @arr = @$aref;
    ...
    for my $i (@$aref){
        ...
    }
    
  2. or download this
    $aref = [
              [
    ...
                9
              ]
            ];
    
  3. or download this
    for my $deref (@$aref){
        for my $element (@$deref){
            print "$element\n";
        }
    }