in reply to Re: tr faster than eq?
in thread tr faster than eq?

Of course if your intent is to remove matching pattern the s/// operator should be used; the reason is that s/// is capable of operating on patterns, and tr/// is not. tr/// operates on characters, not patterns. However, it's incorrect to say that tr/// can't remove characters. That's exactly what the /d modifier is for.


Dave