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