On 2011-01-21, Jonathan M Davis <[email protected]> wrote: > tr? The name means nothing to me. I haven't a clue where the name comes from, > so > I can't really give a better version of the same name. As it is, tr seems > fine to > me, particularly since tR just seems stupid. It should probably get a more > descriptive name though. replaceChars?
Just for everyone's info. tr is a standard unix command; been around forever, and it is a mnemonic for 'translate'. It's also in perl. tr A-Z a-z # convert to lower-case Perl: $ph =~ tr/0-9/cd # get only the digits from a phone number entry field.
