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

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")
  • Comment on (tye)Re4: tr doesn't *really* use a list

Replies are listed 'Best First'.
Re: (tye)Re4: tr doesn't *really* use a list
by fundflow (Chaplain) on Apr 16, 2001 at 12:51 UTC
    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,