Help for this page

Select Code to Download


  1. or download this
    my $string = "helloworldhellohellohihellohiworld";
    my $length = length $string;
    ...
    }
    $dups{$_} ++ for keys %dups;
    for (keys %dups) {print $dups{$_},' occurrences of "',$_,'"',"\n"}