in reply to Can someone explain this one to me?
The tr takes the source set and maps it onto the destination set, which is ' LEOR!AUBGNSTY'; for each character in the source set, it gets mapped to the corresponding character in the dest set. For example:
It's just like a substitution cipher (I think that's the right name). You can do it manually: go through the source string, the string in $_, which is'0' => ' ' '1' => 'L' '2' => 'E' ... '>' => 'Y'
and replace each character by the corresponding character in the destination set. '6' is turned into 'A', '1' is turned into 'L', '1' is turned into 'L', etc. And right there you have 'ALL'.6110>374086;2064208213:90<307;55
Make sense? The key point here is to know what tr does, so you should read the docs for that if you're still not sure how this works.
|
---|