in reply to Is one form of character substitution better than the other, and if so, why?

As always, when in doubt Benchmark. But the substitution's likely going to be the quickest as it won't have the overhead of building the temporary array @contents that's (presumably) thrown away after the join is done.

  • Comment on Re: Is one form of character substitution better than the other, and if so, why?
  • Download Code