Beefy Boxes and Bandwidth Generously Provided by pair Networks
The stupid question is the question not asked
 
PerlMonks  

Re^3: Counting words

by Laurent_R (Canon)
on Nov 05, 2017 at 00:17 UTC ( [id://1202770]=note: print w/replies, xml ) Need Help??

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
    

Log In?
Username:
Password:

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

How do I use this?Last hourOther CB clients
Other Users?
Others wandering the Monastery: (7)
As of 2024-04-18 17:29 GMT
Sections?
Information?
Find Nodes?
Leftovers?
    Voting Booth?

    No recent polls found