Help for this page

Select Code to Download


  1. or download this
    my @sliceRefs = \@array[4, 5, 9];
    
  2. or download this
    my @array = (1 .. 10);
    my @sliceRefs = \@array[4, 5, 9];
    
    ${$sliceRefs[2]} = -10;
    print "@array";