You need the tr/// operator
No, you don't need it. TIMTOWTDI, and s///g is as understandable and easy to write just like tr///.
The difference in performance is impressive
But typically completely irrelevant for the performance of scripts/programs of any size. This optimization feels pretty immature.
When will doing 287356 of these operations per second ever be anything other than fast enough?
In reply to Re^2: replace / with \ using regular expressions?
by Juerd
in thread replace / with \ using regular expressions?
by Anonymous Monk
| For: | Use: | ||
| & | & | ||
| < | < | ||
| > | > | ||
| [ | [ | ||
| ] | ] |