Help for this page

Select Code to Download


  1. or download this
    my @f;
    for my $i (0 .. 20) {
    ...
        push @f, \@e;
    }
    print map "(@$_)", @f
    
  2. or download this
    for (my $i = 0; $i <= 40; $i += 2) {
        my @e = ($i, $i + 1);
        push @f, \@e;
    }
    
  3. or download this
    for my $i (grep 0 == $_ % 2, 0 .. 40) {
        my @e = ($i, $i + 1);
        push @f, \@e;
    }