I'd use a hash to keep track of the letters you generate, and the exists function. If you check the perl FAQs perlfaq1, perlfaq2, etc., you may find some other bits of information to simplify your task.
...roboticus
When your only tool is a hammer, all problems look like your thumb.
In reply to Re: Need help with Peal!
by roboticus
in thread Need help with Peal!
by ivanzhibin
| For: | Use: | ||
| & | & | ||
| < | < | ||
| > | > | ||
| [ | [ | ||
| ] | ] |