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


in reply to Efficient way to replace a set of values with another set of values

darklord_999:

Just curious, but why are you looking for faster / most efficient? It seems that it would be hard to write a method to do the task that would be slow enough to make it worth speeding up --- unless you work at it.

...roboticus

When your only tool is a hammer, all problems look like your thumb.