http://www.perlmonks.org?node_id=965842


in reply to Re: Swap foo and bar in text?
in thread Swap foo and bar in text?

It benchmarks marginally better than the "percentage" method but still way slower than the "evaluated right hand side" method.