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
In reply to Re^2: tr faster than eq?
by davido
in thread tr faster than eq?
by Keystroke
| For: | Use: | ||
| & | & | ||
| < | < | ||
| > | > | ||
| [ | [ | ||
| ] | ] |