Help for this page

Select Code to Download


  1. or download this
    my @array1 = (1, 2, 3, 4);
    my @array2 = (5, 6, 7, 8);
    my @master_array = ( \@array1, \@array2 );
    
  2. or download this
    print $master_array[0][2], "\n"; # prints '3'
    
  3. or download this
    my @master_array = ( [1, 2, 3, 4],
                         [5, 6, 7, 8] );