in reply to (tye)Re: tr doesn't *really* use a list
in thread tr doesn't *really* use a list

What word do you suggest be used in place of "list" in the "list of characters" that tr has two of?

eh... "string"?

  • Comment on Re: (tye)Re: tr doesn't *really* use a list

Replies are listed 'Best First'.
(tye)Re4: tr doesn't *really* use a list
by tye (Sage) on Apr 13, 2001 at 18:32 UTC

    But "string" comes much closer to having a narrow definition in Perl than "list" does so this would make the problem worse. If I said that tr/a-z/A-Z/ replaced the characters in the first string with the cooresponding characters from the second string, then, to me, I'd be saying that "b" is not changed to "B" since "b" does not appear in the string "a-z".

            - tye (but my friends call me "Tye")
      I see your point. For me tr can be taking a short-hand for strings, for convinence. Admittedly I'm not familiar with the official naming given in the official parsing rules.


      Cheers,