How would I go about generating a list of all possible permutations of a string between x and y characters in length, containing a variable list of characters.
Any l
In Perl, if you want to restrict yourself to the lowercase alphabet, you can do this:
my @result = ("a" .. "zzzz");
This gives all possible strings between 1 and 4 characters using lowercase characters. For uppercase, change "a"
to "A"
and "zzzz"
to "ZZZZ"
.
For mixed-case it gets much harder, and probably not doable with one of Perl's builtin operators like that.