|There's more than one way to do things|
Re^2: list of four digit lock combinations without repeated digitsby usemodperl (Beadle)
|on Jun 21, 2018 at 01:23 UTC||Need Help??|
> it generates these kinds of patterns very efficiently
I tried Algorithm::Combinatorics for a similar task. Both of these examples generate an array of strings n characters in length of all combinations of letters (e.g. 4 = 'aaaa'..'zzzz'). Am I doing something stupid with the module, or perl?
Perl string iteration:
Be careful with the parameter because this can make a very big array.
4 is only ~2MB but 5 is 70MB and the 6 character array is around 2000MB.