Help for this page

Select Code to Download


  1. or download this
    my @master_array = (1, 3, (5, 9, 4), 2, (8, 7), 6);
  2. or download this
    my @master_array = (1, 3, 5, 9, 4, 2, 8, 7, 6);
  3. or download this
    my @subarray1 = (5, 9, 4);
    my @subarray2 = (8, 7);
    my @master_array = (1, 3, \@subarray1, 2, \@subarray2, 6);
    
  4. or download this
    my $subarray1_ref = [5, 9, 4];
    my @master_array = (1, 3, $subarray1_ref, 2, [8, 7], 6);