Help for this page

Select Code to Download


  1. or download this
    my $cl1 = sub {
      foreach my $x (0) { print $x++; }
    };
    $cl1->();
    $cl1->();
    
  2. or download this
    my $cl2 = sub {
      foreach my $x (0..1) { print $x++; }
    };
    $cl2->();
    $cl2->();
    
  3. or download this
    0101
    
  4. or download this
    my $cl3 = sub {
      foreach my $x (0..1,5..6) { print $x++; }
    };
    $cl3->();
    $cl3->();
    
  5. or download this
    for (1..2) {
       foreach my $x (0..1,5..6) { print $x++; }
       foreach my $x (0..1,5..6) { print $x++; }
    }