Help for this page

Select Code to Download


  1. or download this
    use List::Util qw(max);
    $e = $range[$i][1] = max($e, $range[$j][1]);
    
  2. or download this
    print "before\n";
    for(my $i = 5; $i < 2; $i++) {
        print " # $i\n";
    }
    print "after\n";
    
  3. or download this
    before
    after
    
  4. or download this
    print "before\n";
    for(my $i = 5; $i < 10; $i++) {
    ...
        }
    }
    print "after\n";
    
  5. or download this
    before
     # 5
    ...
     # 7
     # 12
    after
    
  6. or download this
    for (my $i = 0; $i < @range; $i++) {
    REDO:
    ...
            }
        }
    }
    
  7. or download this
    @range = sort { $a->[0] <=> $b->[0] } @range;
    for (my $i = 0; $i < @range; $i++) {
    ...
            }
        }
    }