Beefy Boxes and Bandwidth Generously Provided by pair Networks vroom
laziness, impatience, and hubris
 
PerlMonks  

Re: Translating letters

by pvaldes (Hermit)
on Apr 16, 2012 at 12:34 UTC ( #965300=note: print w/ replies, xml ) Need Help??


in reply to Translating letters

Being in mind that there are more than ten letters you can't use really tr for this idea because tr only changes a char by another

What I want to say is that you can't use tr to change i.e "f" by "23"

Although nothing is wrong with tr, if your problem is more complex that the example that you provide you probably should think in a hash for this


Comment on Re: Translating letters
Re^2: Translating letters
by pvaldes (Hermit) on Apr 16, 2012 at 14:50 UTC

    mmmh... you ask about traslating numbers to letters but I realize just now that every people are doing exactly the opposite, showing how to traslate letters to numbers... XD.

    tr is the right tool for this, then

Log In?
Username:
Password:

What's my password?
Create A New User
Node Status?
node history
Node Type: note [id://965300]
help
Chatterbox?
and the web crawler heard nothing...

How do I use this? | Other CB clients
Other Users?
Others contemplating the Monastery: (5)
As of 2014-04-20 03:01 GMT
Sections?
Information?
Find Nodes?
Leftovers?
    Voting Booth?

    April first is:







    Results (485 votes), past polls