![]() |
|
Syntactic Confectionery Delight | |
PerlMonks |
Re^3: Creating Dictionariesby Perl Mouse (Chaplain) |
on Dec 16, 2005 at 14:33 UTC ( #517249=note: print w/replies, xml ) | Need Help?? |
There's no need for parenthesis if you use m//g in list context (as I've done). However, I shouldn't have used a while, but a for.
Now, your solution only grabs words 2, 3 or 4 letters long. Which is a restriction that OP didn't have - he eliminates words that have 5 times the same letter (not five letters!)
Perl --((8:>*
In Section
Seekers of Perl Wisdom
|
|