Just another Perl shrine | |
PerlMonks |
Counting wordsby bisimen (Acolyte) |
on Nov 04, 2017 at 17:23 UTC ( [id://1202752]=perlquestion: print w/replies, xml ) | Need Help?? |
bisimen has asked for the wisdom of the Perl Monks concerning the following question: Say I have an array with a string of random characters
Then I basically want a code that counts words. It can be words with a length of 2, 3 etc. So, for the above code, I look for words with a 2 character length, and I'd like to get an output like this
I know you can use hashes, and they have the words be the key or something, then count from there... but I'm lost and I don't know what to search for...
Back to
Seekers of Perl Wisdom
|
|