Help for this page

Select Code to Download


  1. or download this
    for my $i (0 .. $eos) {
        for my $j ($min .. $max) {
            last if $j > $eos-$i;
            print substr($str, $i, $j),"\n";
        }
    }
    
  2. or download this
    my $min = 2;                      # minimum match length
    my $max = 32767;                  # maximum match length
    my $str = "ABCDEF";
    my $eos = length($str);
    
  3. or download this
    my $min = 3;                      # minimum match length
    my $max = 3;                      # maximum match length
    my $str = "ABCDEF";
    my $eos = length($str);