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


in reply to Generating sequence of words

In addition to what PodMaster suggests, you may try a few snippets available here in the Monastery: