Help for this page

Select Code to Download


  1. or download this
    for (INIT; COND; POST) {
       BODY;
    }
    
  2. or download this
    INIT;
    while (COND) {
       BODY;
       POST;
    }
    
  3. or download this
    $j=1;
    while ($j<=10) {
       print "$j\n";
       $j++;
    }
    
  4. or download this
    print "$_\n" for 1..10;
    
  5. or download this
    say for 1..10;