This is unrelated to your tr/// problem but I would suggest using:
foreach $x (@letter) {instead of your for loop, that way you don't have to remember to change the loop termination value from 6 if you change the number of letters.
In reply to Re: A another tr/// statement question..
by kevin_i_orourke
in thread tr/// statement
by supernewbie
| For: | Use: | ||
| & | & | ||
| < | < | ||
| > | > | ||
| [ | [ | ||
| ] | ] |