Beefy Boxes and Bandwidth Generously Provided by pair Networks
Problems? Is your data what you think it is?

Re: Is it possible to find the matching words and the percentage of matching words between two texts?

by McDarren (Abbot)
on Dec 21, 2012 at 08:48 UTC ( #1009889=note: print w/ replies, xml ) Need Help??

Help for this page

Select Code to Download

  1. or download this
    my %foo;
    my $string = 'Poet Blake had a milky white cat. He used to call it Pus
    for my $word (split /\s+/, $string) {
  2. or download this
    my $cnt;
    for my $word (keys %foo) {
        $cnt++ if $bar{$word};
  3. or download this
    my $word_count = scalar keys %foo;

Log In?

What's my password?
Create A New User
Node Status?
node history
Node Type: note [id://1009889]
and the web crawler heard nothing...

How do I use this? | Other CB clients
Other Users?
Others making s'mores by the fire in the courtyard of the Monastery: (5)
As of 2015-05-07 01:07 GMT
Find Nodes?
    Voting Booth?

    In my home, the TV remote control is ...

    Results (154 votes), past polls