|
|
| Just another Perl shrine | |
| PerlMonks |
Re: Is it possible to generate all possible combinations of 2-letter and 3-letter words in perl?by Athanasius (Vicar) |
| on Sep 02, 2012 at 17:31 UTC ( #991310=note: print w/ replies, xml ) | Need Help?? |
|
Although glob performs well for small word sizes, for larger sizes a hand-rolled loop is much faster:
Output:
Hope that helps, Athanasius <°(((>< contra mundum
In Section
Seekers of Perl Wisdom
|
|
||||||||||||||||||||