Help for this page

Select Code to Download


  1. or download this
      @a = (1..3);
      for (@a) {
        print;
        push @a, $_ + 3 if $_ % 2 == 1;
      }
    
  2. or download this
            index = 0;     
            while (index < array.length()) {
              process element array[index];
              index += 1;
            }