Help for this page

Select Code to Download


  1. or download this
    my @array=(1..10);
    print "@array\n";
    ...
    shift (@array);
    print "@array\n";
    }
    
  2. or download this
    1 2 3 4 5 6 7 8 9 10
    2 3 4 5 6 7 8 9 10
    ...
    8 9 10
    9 10
    10
    
  3. or download this
    1 2 3 4 5 6 7 8 9 10
    2 3 4 5 6 7 8 9 10
    ...
    4 5 6 7 8 9 10
    5 6 7 8 9 10
    6 7 8 9 10