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

Changing the 'my' to 'our' is enough to do the trick. Changing '$string' to '$::string' isn't necessary; the Benchmark module runs the code in the package of the caller.