Help for this page

Select Code to Download


  1. or download this
    $arr[0] = @alpha;
    
  2. or download this
    $arr[0] = \@alpha;
    
  3. or download this
    $arr[0] = [ @alpha ];
    
  4. or download this
    foreach( \@alpha, \@beta ) {
        push @arr, $_;
    }
    
  5. or download this
    foreach( [ @alpha ], [ @beta ] ) {
        push @arr, $_;
    }
    
  6. or download this
    my $len = @arr;         # Number of lists contained in @arr.
    my $len = @{ $arr[0] }; # Number of elements contained in the list
                            # referenced by $arr[0].