Help for this page

Select Code to Download


  1. or download this
    use strict;
    use warnings;
    ...
       shift @array;
       $idx++
    }
    
  2. or download this
    <$array[0] == 1> 1 2 3 4 5 6 7 8 9 10
    <$array[1] == 3> 2 3 4 5 6 7 8 9 10
    <$array[2] == 5> 3 4 5 6 7 8 9 10
    <$array[3] == 7> 4 5 6 7 8 9 10
    <$array[4] == 9> 5 6 7 8 9 10