http://www.perlmonks.org?node_id=22832


in reply to RE: TLD generator
in thread TLD generator

Agreed. Recursion suggests itself in this case.
And much better - is to get rid of digits and then just use strings increment. So it will be just
('aaa'..'zzzzzz')
That's all :)