Help for this page

Select Code to Download


  1. or download this
    for (1..3) { ... }
    for (@a) { ... }
    for (my $i=10; $i--; ) { ... }
    
  2. or download this
    while (f()) { ... }
    until (f()) { ... }
    
  3. or download this
    { ... }
    
  4. or download this
    if (f()) { ... }
    unless (f()) { ... }
    
  5. or download this
    ... while f();    Including: do { ... } while f();
    ... for @a;
    ... if f();
    etc
    
  6. or download this
    grep { ... } @a
    map { ... } @a