Help for this page

Select Code to Download


  1. or download this
    my $str = "BEBEBEHUHUHUJJFAFALL";
    my $length = 2;
    ...
        $cnt{$substring}++;                              # increasing the 
    +counter for the substring
        $index += $length;                               # increasing the 
    +offset by $length
    }
    
  2. or download this
       'BE' => 3
       'FA' => 2
       'HU' => 3
       'JJ' => 1
       'LL' => 1