print "$_\n" for glob "{@{[ join ',', @letters ]}}" x $len; [download]
In reply to Re: extracting all possible n-mers from an array by jwkrahn in thread extracting all possible n-mers from an array by gingaloon