in reply to Re^4: The indisputable speed of tr///
in thread The indisputable speed of tr///

His string eval was missing calls to quotemeta. I fixed this, added a few more solutions, and reran the benchmarks. They show that:

That should help convince your peers that this limited, well controlled, easily testable use of eval is appropriate here.

Benchmark results:

Benchmark:

Update: Reorganization for clarity.